MCPcopy
hub / github.com/WiseLibs/better-sqlite3 / fn

Function fn

test/32.database.function.js:92–92  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

90 });
91 it('should accept a "varargs" option', function () {
92 const fn = (...args) => args.reduce((a, b) => a * b, 1);
93 Object.defineProperty(fn, 'length', { value: '-2' });
94 this.db.function('fn', { varargs: true }, fn);
95 expect(this.get('fn()')).to.equal(1);

Callers 8

expectErrorFunction · 0.70
expectErrorFunction · 0.70
useFunction · 0.70
normallyFunction · 0.70
whileIteratingFunction · 0.70
whileBusyFunction · 0.70
whileClosedFunction · 0.70
wrappedFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected