Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 6bc27d4bf42e8f9571bcc7c534c7dffb17661bf6..9f6a4fd7f15c10dc08f2c8d9bfba9c3ba5e49179 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -230,6 +230,12 @@ RUNTIME_FUNCTION(Runtime_ThrowIncompatibleMethodReceiver) { |
NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1)); |
} |
+RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) { |
+ HandleScope scope(isolate); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewRangeError(MessageTemplate::kInvalidStringLength)); |
+} |
+ |
RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 1); |