mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
node: move symbol caching to Load()
This commit is contained in:
1 parent
879efb3338
commit
8adebb92bc
1 file changed
+3
-3
+3
-3
@@ -2361,6 +2361,9 @@ static void SignalExit(int signal) {
|
||||
|
||||
|
||||
void Load(Handle<Object> process_l) {
|
||||
process_symbol = NODE_PSYMBOL("process");
|
||||
domain_symbol = NODE_PSYMBOL("domain");
|
||||
|
||||
// Compile, execute the src/node.js file. (Which was included as static C
|
||||
// string in node_natives.h. 'natve_node' is the string containing that
|
||||
// source code.)
|
||||
@@ -2970,9 +2973,6 @@ int Start(int argc, char *argv[]) {
|
||||
Persistent<Context> context = Context::New();
|
||||
Context::Scope context_scope(context);
|
||||
|
||||
process_symbol = NODE_PSYMBOL("process");
|
||||
domain_symbol = NODE_PSYMBOL("domain");
|
||||
|
||||
// Use original argv, as we're just copying values out of it.
|
||||
Handle<Object> process_l = SetupProcessObject(argc, argv);
|
||||
v8_typed_array::AttachBindings(context->Global());
|
||||
|
||||
Reference in new issue
Block a user