| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index ba5f3fd56ea511d39162be59ff77f22f85cc9c22..6024a8d272b202fe77b88e9f856a5b50ebe7ad32 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1152,6 +1152,12 @@ MaybeHandle<JSFunction> Compiler::GetFunctionFromEval(
|
| compilation_cache->PutEval(source, outer_info, context, shared_info,
|
| scope_position);
|
| }
|
| + if (restriction == ONLY_SINGLE_FUNCTION_LITERAL) {
|
| + // Function constructor.
|
| + shared_info->set_name_should_print_as_anonymous(true);
|
| + // The actual body is wrapped, which adds a line.
|
| + script->set_line_offset(Smi::FromInt(-1));
|
| + }
|
| }
|
| } else if (shared_info->ic_age() != isolate->heap()->global_ic_age()) {
|
| shared_info->ResetForNewContext(isolate->heap()->global_ic_age());
|
|
|