Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 478a954b3e2eb15111eae42060a64913fb90ce67..272bcaaff5ed98f0fbeee13524db9f2810648050 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -153,6 +153,16 @@ RUNTIME_FUNCTION(Runtime_NewSyntaxError) { |
} |
+ |
+RUNTIME_FUNCTION(Runtime_ThrowIllegalInvocation) { |
+ HandleScope scope(isolate); |
+ RUNTIME_ASSERT(args.length() == 0); |
+ |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewTypeError(MessageTemplate::kIllegalInvocation)); |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 1); |