Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index c3e3d056a42fc658fda7c1f26b55f43a15c123ae..c9c143b60c8417266fa66f3e32f49c22080f95c6 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -237,6 +237,14 @@ RUNTIME_FUNCTION(Runtime_ThrowNonObjectInInstanceOfCheck) { |
isolate, NewTypeError(MessageTemplate::kNonObjectInInstanceOfCheck)); |
} |
+RUNTIME_FUNCTION(Runtime_ThrowNotConstructor) { |
+ HandleScope scope(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewTypeError(MessageTemplate::kNotConstructor, object)); |
+} |
+ |
RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |
@@ -378,7 +386,6 @@ Handle<String> RenderCallSite(Isolate* isolate, Handle<Object> object) { |
} // namespace |
- |
RUNTIME_FUNCTION(Runtime_ThrowCalledNonCallable) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |