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