diff --git a/src/node_builtins.cc b/src/node_builtins.cc index da0dab568fcf47..875fb0979950b7 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -285,7 +285,7 @@ MaybeLocal BuiltinLoader::LookupAndCompileInternal( const bool has_cache = cached_data.data != nullptr; ScriptCompiler::CompileOptions options = has_cache ? ScriptCompiler::kConsumeCodeCache - : ScriptCompiler::kEagerCompile; + : ScriptCompiler::kNoCompileOptions; ScriptCompiler::Source script_source( source, origin, diff --git a/src/node_snapshotable.cc b/src/node_snapshotable.cc index 5724142de8e55c..59bcea00d3e7a6 100644 --- a/src/node_snapshotable.cc +++ b/src/node_snapshotable.cc @@ -1270,7 +1270,7 @@ void CompileSerializeMain(const FunctionCallbackInfo& args) { parameters.data(), 0, nullptr, - ScriptCompiler::kEagerCompile) + ScriptCompiler::kNoCompileOptions) .ToLocal(&fn)) { args.GetReturnValue().Set(fn); }