Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index ccd15e8b5da947bdf805a3fbbbdc7a6b49638627..928e83e64603987a41b6eecb3ad21f47bac7f8bf 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -148,7 +148,7 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate, Handle<Object> name, |
// [[construct]]. Instead they just set up new.target and call into the |
// constructor. Hence we can reuse the builtins construct stub for derived |
// classes. |
- Handle<Code> stub(isolate->builtins()->JSBuiltinsConstructStub()); |
+ Handle<Code> stub(isolate->builtins()->JSBuiltinsConstructStubForDerived()); |
constructor->shared()->set_construct_stub(*stub); |
} |