Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index 8a207a8eabcea60d5b12d844e1f97199495af936..ffd121e612ef4d3dd6572ce7dff205cf02139153 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -38,6 +38,15 @@ RUNTIME_FUNCTION(Runtime_ThrowUnsupportedSuperError) { |
} |
+RUNTIME_FUNCTION(Runtime_ThrowConstructorNonCallableError) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 0); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, |
+ NewTypeError("constructor_noncallable", HandleVector<Object>(NULL, 0))); |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_ToMethod) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 2); |