Index: src/parsing/parse-info.h |
diff --git a/src/parsing/parse-info.h b/src/parsing/parse-info.h |
index 69d48381072bde431f46e43cd7781a2a69b8e10d..3fb6fd6b5f541f9bac024aaf34d9f3193e5b037c 100644 |
--- a/src/parsing/parse-info.h |
+++ b/src/parsing/parse-info.h |
@@ -99,6 +99,9 @@ class ParseInfo { |
return compile_options_; |
} |
void set_compile_options(ScriptCompiler::CompileOptions compile_options) { |
+ if (compile_options == ScriptCompiler::kConsumeParserCache) { |
+ set_allow_lazy_parsing(); |
+ } |
compile_options_ = compile_options; |
} |