| 68 | } |
| 69 | |
| 70 | INIT(StatementIterator::Init) { |
| 71 | v8::Local<v8::FunctionTemplate> t = NewConstructorTemplate(isolate, data, JS_new, "StatementIterator"); |
| 72 | SetPrototypeMethod(isolate, data, t, "next", JS_next); |
| 73 | SetPrototypeMethod(isolate, data, t, "return", JS_return); |
| 74 | SetPrototypeSymbolMethod(isolate, data, t, v8::Symbol::GetIterator(isolate), JS_symbolIterator); |
| 75 | return t->GetFunction(OnlyContext).ToLocalChecked(); |
| 76 | } |
| 77 | |
| 78 | NODE_METHOD(StatementIterator::JS_new) { |
| 79 | UseAddon; |
nothing calls this directly
no test coverage detected