Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index a094d938d094d5f56d47f237a8bf05fee86df5bb..aa4675b713851260cc901d1d4b5a7abd3605bd0c 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -234,8 +234,7 @@ RUNTIME_FUNCTION(Runtime_ThrowIncompatibleMethodReceiver) { |
RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) { |
HandleScope scope(isolate); |
- THROW_NEW_ERROR_RETURN_FAILURE( |
- isolate, NewRangeError(MessageTemplate::kInvalidStringLength)); |
+ THROW_NEW_ERROR_RETURN_FAILURE(isolate, NewInvalidStringLengthError()); |
} |
RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |