Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index d871fc7f5aaf8125f767581cd3def043d4c60b88..8a5bdeb60dc1ca292a58db550f0f5332fb94fdab 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -160,6 +160,15 @@ RUNTIME_FUNCTION(Runtime_ThrowIllegalInvocation) { |
isolate, NewTypeError(MessageTemplate::kIllegalInvocation)); |
} |
+RUNTIME_FUNCTION(Runtime_ThrowIncompatibleMethodReceiver) { |
+ HandleScope scope(isolate); |
+ DCHECK_EQ(2, args.length()); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, arg1, 1); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, |
+ NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1)); |
+} |
RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |
HandleScope scope(isolate); |
@@ -170,6 +179,12 @@ RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |
NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); |
} |
+RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { |
+ HandleScope scope(isolate); |
+ DCHECK_EQ(0, args.length()); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewTypeError(MessageTemplate::kGeneratorRunning)); |
+} |
RUNTIME_FUNCTION(Runtime_ThrowApplyNonFunction) { |
HandleScope scope(isolate); |