@@ -250,7 +250,7 @@ bool config_experimental_vm_modules = false;
250
250
251
251
// Set in node.cc by ParseArgs when --loader is used.
252
252
// Used in node_config.cc to set a constant on process.binding('config')
253
- // that is used by lib/internal/bootstrap_node .js
253
+ // that is used by lib/internal/bootstrap/node .js
254
254
std::string config_userland_loader; // NOLINT(runtime/string)
255
255
256
256
// Set by ParseArgs when --pending-deprecation or NODE_PENDING_DEPRECATION
@@ -263,7 +263,7 @@ std::string config_warning_file; // NOLINT(runtime/string)
263
263
// Set in node.cc by ParseArgs when --expose-internals or --expose_internals is
264
264
// used.
265
265
// Used in node_config.cc to set a constant on process.binding('config')
266
- // that is used by lib/internal/bootstrap_node .js
266
+ // that is used by lib/internal/bootstrap/node .js
267
267
bool config_expose_internals = false ;
268
268
269
269
bool v8_initialized = false ;
@@ -3645,23 +3645,23 @@ static Local<Function> GetBootstrapper(Environment* env, Local<String> source,
3645
3645
// are not safe to ignore.
3646
3646
try_catch.SetVerbose (false );
3647
3647
3648
- // Execute the factory javascript file
3649
- Local<Value> factory_v = ExecuteString (env, source, script_name);
3648
+ // Execute the bootstrapper javascript file
3649
+ Local<Value> bootstrapper_v = ExecuteString (env, source, script_name);
3650
3650
if (try_catch.HasCaught ()) {
3651
3651
ReportException (env, try_catch);
3652
3652
exit (10 );
3653
3653
}
3654
3654
3655
- CHECK (factory_v ->IsFunction ());
3656
- Local<Function> factory = Local<Function>::Cast (factory_v );
3655
+ CHECK (bootstrapper_v ->IsFunction ());
3656
+ Local<Function> bootstrapper = Local<Function>::Cast (bootstrapper_v );
3657
3657
3658
- return scope.Escape (factory );
3658
+ return scope.Escape (bootstrapper );
3659
3659
}
3660
3660
3661
- static bool ExecuteBootstrapper (Environment* env, Local<Function> factory ,
3661
+ static bool ExecuteBootstrapper (Environment* env, Local<Function> bootstrapper ,
3662
3662
int argc, Local<Value> argv[],
3663
3663
Local<Value>* out) {
3664
- bool ret = factory ->Call (
3664
+ bool ret = bootstrapper ->Call (
3665
3665
env->context (), Null (env->isolate ()), argc, argv).ToLocal (out);
3666
3666
3667
3667
// If there was an error during bootstrap then it was either handled by the
@@ -3688,16 +3688,18 @@ void LoadEnvironment(Environment* env) {
3688
3688
// are not safe to ignore.
3689
3689
try_catch.SetVerbose (false );
3690
3690
3691
- // The factory scripts are lib/internal/bootstrap_loaders .js and
3692
- // lib/internal/bootstrap_node .js, each included as a static C string
3691
+ // The bootstrapper scripts are lib/internal/bootstrap/loaders .js and
3692
+ // lib/internal/bootstrap/node .js, each included as a static C string
3693
3693
// defined in node_javascript.h, generated in node_javascript.cc by
3694
3694
// node_js2c.
3695
+ Local<String> loaders_name =
3696
+ FIXED_ONE_BYTE_STRING (env->isolate (), " internal/bootstrap/loaders.js" );
3695
3697
Local<Function> loaders_bootstrapper =
3696
- GetBootstrapper (env, LoadersBootstrapperSource (env),
3697
- FIXED_ONE_BYTE_STRING (env->isolate (), " bootstrap_loaders.js" ));
3698
+ GetBootstrapper (env, LoadersBootstrapperSource (env), loaders_name);
3699
+ Local<String> node_name =
3700
+ FIXED_ONE_BYTE_STRING (env->isolate (), " internal/bootstrap/node.js" );
3698
3701
Local<Function> node_bootstrapper =
3699
- GetBootstrapper (env, NodeBootstrapperSource (env),
3700
- FIXED_ONE_BYTE_STRING (env->isolate (), " bootstrap_node.js" ));
3702
+ GetBootstrapper (env, NodeBootstrapperSource (env), node_name);
3701
3703
3702
3704
// Add a reference to the global object
3703
3705
Local<Object> global = env->context ()->Global ();
0 commit comments