MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / INIT

Function INIT

src/objects/statement-iterator.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70INIT(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
78NODE_METHOD(StatementIterator::JS_new) {
79 UseAddon;

Callers

nothing calls this directly

Calls 3

NewConstructorTemplateFunction · 0.85
SetPrototypeMethodFunction · 0.85
SetPrototypeSymbolMethodFunction · 0.85

Tested by

no test coverage detected