File tree Expand file tree Collapse file tree 3 files changed +30
-18
lines changed
Expand file tree Collapse file tree 3 files changed +30
-18
lines changed Original file line number Diff line number Diff line change 373373 'src/node_process.cc' ,
374374 'src/node_serdes.cc' ,
375375 'src/node_stat_watcher.cc' ,
376+ 'src/node_symbols.cc' ,
376377 'src/node_trace_events.cc' ,
377378 'src/node_types.cc' ,
378379 'src/node_url.cc' ,
Original file line number Diff line number Diff line change @@ -135,22 +135,4 @@ void SetupBootstrapObject(Environment* env,
135135}
136136#undef BOOTSTRAP_METHOD
137137
138- namespace symbols {
139-
140- void Initialize (Local<Object> target,
141- Local<Value> unused,
142- Local<Context> context,
143- void * priv) {
144- Environment* env = Environment::GetCurrent (context);
145- #define V (PropertyName, StringValue ) \
146- target->Set (env->context (), \
147- env->PropertyName ()->Name (), \
148- env->PropertyName ()).FromJust ();
149- PER_ISOLATE_SYMBOL_PROPERTIES (V)
150- #undef V
151- }
152-
153- } // namespace symbols
154138} // namespace node
155-
156- NODE_MODULE_CONTEXT_AWARE_INTERNAL (symbols, node::symbols::Initialize)
Original file line number Diff line number Diff line change 1+ #include " env-inl.h"
2+ #include " node_binding.h"
3+
4+ namespace node {
5+
6+ using v8::Context;
7+ using v8::Local;
8+ using v8::Object;
9+ using v8::Value;
10+
11+ namespace symbols {
12+
13+ static void Initialize (Local<Object> target,
14+ Local<Value> unused,
15+ Local<Context> context,
16+ void * priv) {
17+ Environment* env = Environment::GetCurrent (context);
18+ #define V (PropertyName, StringValue ) \
19+ target \
20+ ->Set (env->context (), env->PropertyName ()->Name (), env->PropertyName ()) \
21+ .FromJust ();
22+ PER_ISOLATE_SYMBOL_PROPERTIES (V)
23+ #undef V
24+ }
25+
26+ } // namespace symbols
27+ } // namespace node
28+
29+ NODE_MODULE_CONTEXT_AWARE_INTERNAL (symbols, node::symbols::Initialize)
You canβt perform that action at this time.
0 commit comments