From 8adebb92bcd51a856cd44d4918502e133f67d63b Mon Sep 17 00:00:00 2001 From: Dean McNamee Date: Fri, 21 Dec 2012 16:12:45 +0100 Subject: [PATCH] node: move symbol caching to Load() --- src/node.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node.cc b/src/node.cc index 3829268d77e..e1e8195bc89 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2361,6 +2361,9 @@ static void SignalExit(int signal) { void Load(Handle 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::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 process_l = SetupProcessObject(argc, argv); v8_typed_array::AttachBindings(context->Global());