The Wayback Machine - https://web.archive.org/web/20210124105421/https://github.com/sql-js/sql.js/issues/395
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database.each() documented return value doesn't match code #395

Open
rhashimoto opened this issue May 14, 2020 · 0 comments
Open

Database.each() documented return value doesn't match code #395

rhashimoto opened this issue May 14, 2020 · 0 comments
Labels
bug

Comments

@rhashimoto
Copy link

@rhashimoto rhashimoto commented May 14, 2020

Database.each() is documented as returning the Database instance:

Returns:
( Database ) — The database object. Usefull for method chaining

The source code, however, shows that it returns either the result of the done callback or undefined. Either the documentation or the code appears wrong.

@lovasoa lovasoa added the bug label May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants