mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
This commit replaces Symbol::Name() with Symbol::Description(). Fixes: https://github.com/nodejs/node/issues/30916 PR-URL: https://github.com/nodejs/node/pull/32116 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
31 lines
853 B
C++
31 lines
853 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->PropertyName()).Check();
|
|
PER_ISOLATE_SYMBOL_PROPERTIES(V)
|
|
#undef V
|
|
}
|
|
|
|
} // namespace symbols
|
|
} // namespace node
|
|
|
|
NODE_MODULE_CONTEXT_AWARE_INTERNAL(symbols, node::symbols::Initialize)
|