Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index da1c0e74618c8e448a6705e8e1b5d5f7f2a2c06c..476eff4c41672425da5d7fd064851063bfe6ded1 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1825,8 +1825,9 @@ Local<Script> ScriptCompiler::Compile(Isolate* v8_isolate, |
// Do the parsing tasks which need to be done on the main thread. This will |
// also handle parse errors. |
- source->parser->Internalize(source->info.get()); |
- source->parser->HandleSourceURLComments(source->info.get()); |
+ source->parser->Internalize(isolate, script, |
+ source->info->function() == NULL); |
+ source->parser->HandleSourceURLComments(isolate, script); |
i::Handle<i::SharedFunctionInfo> result = |
i::Handle<i::SharedFunctionInfo>::null(); |