Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 8a5bdeb60dc1ca292a58db550f0f5332fb94fdab..d93ffdb846a8f2206031cce3002709deb4a3c18b 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -431,6 +431,13 @@ RUNTIME_FUNCTION(Runtime_ThrowCalledNonCallable) { |
isolate, NewTypeError(MessageTemplate::kCalledNonCallable, callsite)); |
} |
+RUNTIME_FUNCTION(Runtime_ThrowCalledOnNullOrUndefined) { |
+ HandleScope scope(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_HANDLE_CHECKED(String, name, 0); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewTypeError(MessageTemplate::kCalledOnNullOrUndefined, name)); |
+} |
RUNTIME_FUNCTION(Runtime_ThrowConstructedNonConstructable) { |
HandleScope scope(isolate); |