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 Mar 18, 2020
1 parent 0c93c37 commit d0084ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node_symbols.cc
Original file line number Diff line number Diff line change
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 d0084ee

Please sign in to comment.