Skip to content

Commit

Permalink
src: use non-deprecated Symbol::Description
Browse files Browse the repository at this point in the history
Backport-PR-URL: #39470
PR-URL: #38990
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
targos authored and BethGriggs committed Jul 29, 2021
1 parent 5fe74aa commit 929205e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/node_symbols.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ 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()->Description(), \
env->PropertyName()).Check();
#define V(PropertyName, StringValue) \
target \
->Set(env->context(), \
env->PropertyName()->Description(env->isolate()), \
env->PropertyName()) \
.Check();
PER_ISOLATE_SYMBOL_PROPERTIES(V)
#undef V
}
Expand Down

0 comments on commit 929205e

Please sign in to comment.