Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index e7491ba3f485ef98751f3ceb4eeb639112daceb8..6ffb667f2df52d1324f574f138ef4a3f4eab9123 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -234,6 +234,14 @@ RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |
NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); |
} |
+RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { |
+ HandleScope scope(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0)); |
+} |
+ |
RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { |
HandleScope scope(isolate); |
DCHECK_EQ(0, args.length()); |