| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index ef21f1f46f9e65ff227bdefb703fe4132101c59e..8816404365e4e16730a6da5d01487f4114781353 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1405,6 +1405,11 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(
|
| result->set_script(*script);
|
| result->set_is_toplevel(false);
|
|
|
| + if (literal->scope()->new_target_var() != nullptr) {
|
| + Handle<Code> stub(isolate->builtins()->JSConstructStubNewTarget());
|
| + result->set_construct_stub(*stub);
|
| + }
|
| +
|
| RecordFunctionCompilation(Logger::FUNCTION_TAG, &info, result);
|
| result->set_allows_lazy_compilation(literal->AllowsLazyCompilation());
|
| result->set_allows_lazy_compilation_without_context(allow_lazy_without_ctx);
|
|
|