diff --git a/patches/node/fix_expose_lookupandcompile_with_parameters.patch b/patches/node/fix_expose_lookupandcompile_with_parameters.patch index fc1ba9f58a2f9..ccf89510de7a9 100644 --- a/patches/node/fix_expose_lookupandcompile_with_parameters.patch +++ b/patches/node/fix_expose_lookupandcompile_with_parameters.patch @@ -10,11 +10,11 @@ parameters. This should be upstreamed. diff --git a/src/node_builtins.cc b/src/node_builtins.cc -index 4d4b59916bfdb203702c4e878ff2659b79de8c52..6451464c9fb411a1988bada86eabb4071ee07eb0 100644 +index 7e4a43a6f13845c8a81bae96ec073ccdfc655999..26ebc322afa36994b4f1b93f992ac8b726263191 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc -@@ -435,6 +435,22 @@ MaybeLocal BuiltinLoader::LookupAndCompile( - return maybe; +@@ -482,6 +482,22 @@ MaybeLocal BuiltinLoader::CompileAndCall(Local context, + return fn->Call(context, undefined, argc, argv); } +MaybeLocal BuiltinLoader::LookupAndCompile( @@ -34,21 +34,22 @@ index 4d4b59916bfdb203702c4e878ff2659b79de8c52..6451464c9fb411a1988bada86eabb407 +} + bool BuiltinLoader::CompileAllBuiltins(Local context) { - BuiltinLoader* loader = GetInstance(); - std::vector ids = loader->GetBuiltinIds(); + std::vector ids = GetBuiltinIds(); + bool all_succeeded = true; diff --git a/src/node_builtins.h b/src/node_builtins.h -index 8d9f7c409659a30747e5feeac6cfec4208791370..34a51c3e5a79154c3633143b352aa9e108497767 100644 +index ba0c926a7968ec6a4cf07a469f1fd9314287a937..03ecd853b26a581f57b3311915fb7f46e713b00d 100644 --- a/src/node_builtins.h +++ b/src/node_builtins.h -@@ -50,6 +50,11 @@ class NODE_EXTERN_PRIVATE BuiltinLoader { - v8::Local context, - const char* id, - Environment* optional_env); +@@ -107,6 +107,12 @@ class NODE_EXTERN_PRIVATE BuiltinLoader { + const char* id, + Realm* realm); + + static v8::MaybeLocal LookupAndCompile( + v8::Local context, + const char* id, + std::vector>* parameters, + Environment* optional_env); - - static v8::Local GetSourceObject(v8::Local context); ++ // Returns config.gypi as a JSON string + v8::Local GetConfigString(v8::Isolate* isolate); + bool Exists(const char* id);