Skip to content

Commit

Permalink
src: remove use of deprecated Symbol::Name()
Browse files Browse the repository at this point in the history
This commit replaces Symbol::Name() with
Symbol::Description().

Fixes: nodejs/node#30916
  • Loading branch information
cjihrig authored and nodejs-ci committed Jan 14, 2020
1 parent bec2a17 commit 4b254e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node_symbols.cc
Expand Up @@ -16,10 +16,10 @@ static void Initialize(Local<Object> target,
Local<Context> 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
}
Expand Down

0 comments on commit 4b254e7

Please sign in to comment.