Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index 1c53f0f62619df84cbe9b109bc645c8bf4019778..246079232b468d793fd69b71af92999eb78fe84a 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -45,6 +45,13 @@ RUNTIME_FUNCTION(Runtime_ThrowStaticPrototypeError) { |
isolate, NewTypeError(MessageTemplate::kStaticPrototype)); |
} |
+RUNTIME_FUNCTION(Runtime_ThrowSuperAlreadyCalledError) { |
+ HandleScope scope(isolate); |
+ DCHECK_EQ(0, args.length()); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewReferenceError(MessageTemplate::kSuperAlreadyCalled)); |
+} |
+ |
namespace { |
Object* ThrowNotSuperConstructor(Isolate* isolate, Handle<Object> constructor, |