mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
src: use non-deprecated Get/SetPrototype methods
Refs: https://github.com/v8/v8/commit/5e139e98d1e4d8bbcccf7b15cd8e7d08b28e4a81 PR-URL: https://github.com/nodejs/node/pull/59671 Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com> Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -2103,9 +2103,9 @@ void StatementSync::Iterate(const FunctionCallbackInfo<Value>& args) {
|
||||
StatementSyncIterator::Create(env, BaseObjectPtr<StatementSync>(stmt));
|
||||
|
||||
if (iter->object()
|
||||
->GetPrototype()
|
||||
->GetPrototypeV2()
|
||||
.As<Object>()
|
||||
->SetPrototype(context, js_iterator_prototype)
|
||||
->SetPrototypeV2(context, js_iterator_prototype)
|
||||
.IsNothing()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user