Index: src/background-parsing-task.cc |
diff --git a/src/background-parsing-task.cc b/src/background-parsing-task.cc |
index c7602a7defd7b698f7268b4d4b3ada4c1c4f3e71..6ac743e1e52322422eb3190e79879236551496ad 100644 |
--- a/src/background-parsing-task.cc |
+++ b/src/background-parsing-task.cc |
@@ -25,6 +25,11 @@ BackgroundParsingTask::BackgroundParsingTask( |
options == ScriptCompiler::kNoCompileOptions); |
source->allow_lazy = |
!i::Compiler::DebuggerWantsEagerCompilation(source->info.get()); |
+ |
+ if (!source->allow_lazy && options_ == ScriptCompiler::kProduceParserCache) { |
+ // Producing cached data while parsing eagerly is not supported. |
+ options_ = ScriptCompiler::kNoCompileOptions; |
+ } |
source->hash_seed = isolate->heap()->HashSeed(); |
} |