src: use non-deprecated Get/SetPrototype methods · nodejs/node@88d1ca8

Original file line numberDiff line numberDiff line change

@@ -2103,9 +2103,9 @@ void StatementSync::Iterate(const FunctionCallbackInfo<Value>& args) {

21032103

StatementSyncIterator::Create(env, BaseObjectPtr<StatementSync>(stmt));

21042104
21052105

if (iter->object()

2106-

->GetPrototype()

2106+

->GetPrototypeV2()

21072107

.As<Object>()

2108-

->SetPrototype(context, js_iterator_prototype)

2108+

->SetPrototypeV2(context, js_iterator_prototype)

21092109

.IsNothing()) {

21102110

return;

21112111

}