| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 58f47bc5c6f1635897542bc4974135a0c244714d..7683e13159da76d713e9785aad142e60587cebdb 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1378,6 +1378,11 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(
|
| result->set_script(*script);
|
| result->set_is_toplevel(false);
|
|
|
| + if (literal->scope()->uses_new_target()) {
|
| + 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);
|
|
|