mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
PR-URL: https://github.com/nodejs/node/pull/38990 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
33 lines
990 B
C++
33 lines
990 B
C++
#include "env-inl.h"
|
|
#include "node_binding.h"
|
|
#include "util.h"
|
|
|
|
namespace node {
|
|
|
|
using v8::Context;
|
|
using v8::Local;
|
|
using v8::Object;
|
|
using v8::Value;
|
|
|
|
namespace symbols {
|
|
|
|
static void Initialize(Local<Object> target,
|
|
Local<Value> unused,
|
|
Local<Context> context,
|
|
void* priv) {
|
|
Environment* env = Environment::GetCurrent(context);
|
|
#define V(PropertyName, StringValue) \
|
|
target \
|
|
->Set(env->context(), \
|
|
env->PropertyName()->Description(env->isolate()), \
|
|
env->PropertyName()) \
|
|
.Check();
|
|
PER_ISOLATE_SYMBOL_PROPERTIES(V)
|
|
#undef V
|
|
}
|
|
|
|
} // namespace symbols
|
|
} // namespace node
|
|
|
|
NODE_MODULE_CONTEXT_AWARE_INTERNAL(symbols, node::symbols::Initialize)
|