From e02a3952d4117561c8515f1e680361e310323e26 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sat, 14 Dec 2019 13:52:21 -0500 Subject: [PATCH] src: remove use of deprecated Symbol::Name() This commit replaces Symbol::Name() with Symbol::Description(). Fixes: https://github.com/nodejs/node/issues/30916 --- src/node_symbols.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/node_symbols.cc b/src/node_symbols.cc index cb6c5583bb8..31d2487fdcf 100644 --- a/src/node_symbols.cc +++ b/src/node_symbols.cc @@ -16,10 +16,10 @@ static void Initialize(Local target, Local context, void* priv) { Environment* env = Environment::GetCurrent(context); -#define V(PropertyName, StringValue) \ - target \ - ->Set(env->context(), env->PropertyName()->Name(), env->PropertyName()) \ - .Check(); +#define V(PropertyName, StringValue) \ + target->Set(env->context(), \ + env->PropertyName()->Description(), \ + env->PropertyName()).Check(); PER_ISOLATE_SYMBOL_PROPERTIES(V) #undef V }