mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
src: update v8::Object::GetPropertyNames() usage
Use the non-deprecated version of GetPropertyNames(). PR-URL: https://github.com/nodejs/node/pull/23660 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
9c5ec790a0
commit
e4fdedd3f1
1 file changed
+6
-1
@@ -508,7 +508,12 @@ void ContextifyContext::PropertyEnumeratorCallback(
|
||||
if (ctx->context_.IsEmpty())
|
||||
return;
|
||||
|
||||
args.GetReturnValue().Set(ctx->sandbox()->GetPropertyNames());
|
||||
Local<Array> properties;
|
||||
|
||||
if (!ctx->sandbox()->GetPropertyNames(ctx->context()).ToLocal(&properties))
|
||||
return;
|
||||
|
||||
args.GetReturnValue().Set(properties);
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
Reference in new issue
Block a user