@@ -87,25 +87,23 @@ index 9d182d2aeb48c8b600bace036df868fb695dfa7c..38c467c7d49589ef5d985ad999fe22d9
8787
8888 #ifdef NODE_REPORT
8989 // Cache the original command line to be
90- @@ -811,6 +824,9 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
90+ @@ -849,6 +849,8 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
91+ if (exit_code != 0) return exit_code;
9192 }
9293 #endif
93-
9494+ if (g_upstream_node_mode) {
9595+ // NOTE(jeremy): indentation is intentionally wrong here, to ease rebasing.
96- +
97- const int exit_code = ProcessGlobalArgs(argv, exec_argv, errors, false);
98- if (exit_code != 0) return exit_code;
9996
100- @@ -833,6 +849,8 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
97+ const int exit_code = ProcessGlobalArgs(argv,
98+ exec_argv,
99+ @@ -893,6 +895,7 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
100+ }
101101 per_process::metadata.versions.InitializeIntlVersions();
102102 #endif
103-
104103+ } // g_upstream_node_mode
105- +
104+
106105 NativeModuleEnv::InitializeCodeCache();
107106
108- // We should set node_is_initialized here instead of in node::Start,
109107diff --git a/src/node.h b/src/node.h
110108index 025c6b949dc438a98a960d3630c723376f731ca7..892dafd8031533d23a88298406356107409cbd0a 100644
111109--- a/src/node.h
0 commit comments