diff --git a/src/node_builtins.cc b/src/node_builtins.cc index 2220869fa76f35..356ec3acd0bf3a 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -297,7 +297,7 @@ MaybeLocal BuiltinLoader::LookupAndCompileInternal( const bool has_cache = cached_data != nullptr; ScriptCompiler::CompileOptions options = has_cache ? ScriptCompiler::kConsumeCodeCache - : ScriptCompiler::kEagerCompile; + : ScriptCompiler::kNoCompileOptions; ScriptCompiler::Source script_source(source, origin, cached_data); per_process::Debug(DebugCategory::CODE_CACHE, diff --git a/src/node_snapshotable.cc b/src/node_snapshotable.cc index bfa048a4a8aa18..f70e6ddf4303f3 100644 --- a/src/node_snapshotable.cc +++ b/src/node_snapshotable.cc @@ -1484,7 +1484,7 @@ void CompileSerializeMain(const FunctionCallbackInfo& args) { parameters.data(), 0, nullptr, - ScriptCompiler::kEagerCompile) + ScriptCompiler::kNoCompileOptions) .ToLocal(&fn)) { args.GetReturnValue().Set(fn); }