Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index faea623dca204322dcb76d803448c054691d98b5..b46d69fe2676ec77f97556a724d5d8b29d77520d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2002,11 +2002,11 @@ MaybeLocal<Script> ScriptCompiler::Compile(Local<Context> context, |
// Do the parsing tasks which need to be done on the main thread. This will |
// also handle parse errors. |
source->parser->Internalize(isolate, script, |
- source->info->function() == nullptr); |
+ source->info->literal() == nullptr); |
source->parser->HandleSourceURLComments(isolate, script); |
i::Handle<i::SharedFunctionInfo> result; |
- if (source->info->function() != nullptr) { |
+ if (source->info->literal() != nullptr) { |
// Parsing has succeeded. |
result = i::Compiler::CompileStreamedScript(script, source->info.get(), |
str->length()); |