GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — sqlite: exhausted iterators incorrectly receive `return()` · Issue #66518 · nodejs/node Closed Labels sqliteIssues and PRs related to the SQLite subsystem. DescriptionVersionmain PlatformSubsystemsqlite What steps will reproduce the bug?import { Database } from 'node:sqlite'; const db = new Database(':memory:'); db.createModule('empty', { columns: [{ name: 'value', type: 'INTEGER' }], rows() { return { [Symbol.iterator]() { return this; }, next() { return { value: [], done: true }; }, // empty: exhausted immediately return() { throw new Error('cleanup boom'); }, }; }, }); console.log(db.prepare('SELECT value FROM empty').all()); How often does it reproduce? Is there a required condition?Always What is the expected behavior? Why is that the expected behavior?Once What do you see instead?throws Additional informationNo response Activity
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |