Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 50b61921f59ed8916841e8a4edfd404a3b66208d..33234cd19f73b7b582a201a6c9158f349376ca36 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -55,6 +55,16 @@ RUNTIME_FUNCTION(Runtime_ThrowReferenceError) { |
} |
+RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, |
+ NewTypeError("iterator_result_not_an_object", HandleVector(&value, 1))); |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_PromiseRejectEvent) { |
DCHECK(args.length() == 3); |
HandleScope scope(isolate); |