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: #30916

PR-URL: #32116
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
cjihrig authored and mmarchini committed Mar 18, 2020
1 parent 59eeb3b commit 7ed0d14
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 7ed0d14

Please sign in to comment.