diff --git a/src/node_sqlite.cc b/src/node_sqlite.cc index 80898f431523a3..be99229930058c 100644 --- a/src/node_sqlite.cc +++ b/src/node_sqlite.cc @@ -619,13 +619,8 @@ void StatementSync::Iterate(const FunctionCallbackInfo& args) { LocalVector values(isolate, {next_func, return_func}); Local global = context->Global(); - Local js_global_this = - global->Get(context, String::NewFromUtf8Literal(isolate, "globalThis")) - .ToLocalChecked() - .As(); Local js_iterator = - js_global_this - ->Get(context, String::NewFromUtf8Literal(isolate, "Iterator")) + global->Get(context, String::NewFromUtf8Literal(isolate, "Iterator")) .ToLocalChecked() .As(); Local js_iterator_prototype =