| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 4423cb5d006396bbb14ac5c7dd394c99f0d12743..0a8e5cc26b5832eff62cd0b6c454f78dd7c9675f 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -357,8 +357,8 @@ bool Compiler::CompileLazy(Handle<SharedFunctionInfo> shared,
|
| // name and line number. Check explicit whether logging is enabled as finding
|
| // the line number is not for free.
|
| if (Logger::is_enabled() || OProfileAgent::is_enabled()) {
|
| - Handle<String> func_name(lit->name()->length() > 0 ?
|
| - *lit->name() : shared->inferred_name());
|
| + Handle<String> func_name(name->length() > 0 ?
|
| + *name : shared->inferred_name());
|
| if (script->name()->IsString()) {
|
| int line_num = GetScriptLineNumber(script, start_position);
|
| if (line_num > 0) {
|
|
|