diff --git a/src/node_sqlite.cc b/src/node_sqlite.cc index d941ccca998c09..2a214ad8d3b135 100644 --- a/src/node_sqlite.cc +++ b/src/node_sqlite.cc @@ -2111,9 +2111,9 @@ void StatementSync::Iterate(const FunctionCallbackInfo& args) { StatementSyncIterator::Create(env, BaseObjectPtr(stmt)); if (iter->object() - ->GetPrototype() + ->GetPrototypeV2() .As() - ->SetPrototype(context, js_iterator_prototype) + ->SetPrototypeV2(context, js_iterator_prototype) .IsNothing()) { return; }