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:
cjihrig authored and James M Snell committed 2018-10-17 11:32:05 -07:00
1 parent 9c5ec790a0
commit e4fdedd3f1
1 file changed
+6 -1
+6 -1
View File
@@ -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