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:
Michaël Zasso committed 2025-09-04 10:15:17 +02:00
1 parent 96db47f91e
commit 88d1ca8990
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}