1 #include "env-inl.h"
2 #include "node_binding.h"
3 #include "util.h"
4
5 namespace node {
6
7 using v8::Context;
8 using v8::Local;
9 using v8::Object;
10 using v8::Value;
11
12 namespace symbols {
13
Initialize(Local<Object> target,Local<Value> unused,Local<Context> context,void * priv)14 static void Initialize(Local<Object> target,
15 Local<Value> unused,
16 Local<Context> context,
17 void* priv) {
18 Environment* env = Environment::GetCurrent(context);
19 #define V(PropertyName, StringValue) \
20 target->Set(env->context(), \
21 env->PropertyName()->Description(), \
22 env->PropertyName()).Check();
23 PER_ISOLATE_SYMBOL_PROPERTIES(V)
24 #undef V
25 }
26
27 } // namespace symbols
28 } // namespace node
29
30 NODE_MODULE_CONTEXT_AWARE_INTERNAL(symbols, node::symbols::Initialize)
31