Index: src/liveedit.cc |
diff --git a/src/liveedit.cc b/src/liveedit.cc |
index c07e83f6bc9cf513c4290032f55c342b946273f8..2fae3afb1c130bdd894b0f43a3ab1ba0b5989529 100644 |
--- a/src/liveedit.cc |
+++ b/src/liveedit.cc |
@@ -408,6 +408,7 @@ static void CompileScriptForTracker(Handle<Script> script) { |
// Build AST. |
ScriptDataImpl* pre_data = NULL; |
+ EagerCompilationInfo info(script, is_eval); |
FunctionLiteral* lit = MakeAST(is_global, script, extension, pre_data); |
// Check for parse errors. |
@@ -415,10 +416,9 @@ static void CompileScriptForTracker(Handle<Script> script) { |
ASSERT(Top::has_pending_exception()); |
return; |
} |
+ info.set_function(lit); |
// Compile the code. |
- CompilationInfo info(lit, script, is_eval); |
- |
LiveEditFunctionTracker tracker(lit); |
Handle<Code> code = MakeCodeForLiveEdit(&info); |