Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index ca5fecb0ab7044ea5cb88135be1c133e396b3cb6..ee1ce50daeb18d672129dedbd0b31594d9a2eddb 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -496,7 +496,7 @@ RUNTIME_FUNCTION(Runtime_HandleStepInForDerivedConstructors) { |
RUNTIME_FUNCTION(Runtime_DefaultConstructorCallSuper) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 2); |
- CONVERT_ARG_HANDLE_CHECKED(JSFunction, original_constructor, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(JSFunction, new_target, 0); |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, super_constructor, 1); |
JavaScriptFrameIterator it(isolate); |
@@ -507,9 +507,8 @@ RUNTIME_FUNCTION(Runtime_DefaultConstructorCallSuper) { |
Handle<Object> result; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, |
- Execution::New(isolate, super_constructor, original_constructor, |
- argument_count, arguments.get())); |
+ isolate, result, Execution::New(isolate, super_constructor, new_target, |
+ argument_count, arguments.get())); |
return *result; |
} |