| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
Codecov Report❌ Patch coverage is 61.29032% with 12 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## main #64743 +/- ##
=======================================
Coverage 90.16% 90.16%
=======================================
Files 746 746
Lines 242760 242784 +24
Branches 45765 45766 +1
=======================================
+ Hits 218875 218902 +27
+ Misses 15375 15367 -8
- Partials 8510 8515 +5
... and 32 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was a problem hiding this comment.
I checked the guards in the base functions, and the window functions are covered too
and I looked fail test, this fail unrelated this pr
Sorry, something went wrong.
Sorry, something went wrong.
Co-authored-by: Asroy Cristian Sitorus <asroycristiansitorus@gmail.com> Signed-off-by: Matteo Collina <hello@matteocollina.com>
Sorry, something went wrong.
Closing a database from inside a callback now reports "database cannot be closed while in a callback" instead of "database cannot be closed inside a user-defined function callback", the wording upstream adopted in nodejs/node#64743. The error code (ERR_INVALID_STATE) is unchanged, so only tests matching the old string are affected. The upstream test that pins this message, test-sqlite-udf-close.js, had been downloaded to test/upstream/ but never adapted into test/node-compat/, so its four cases never ran. Generating it required making sync-node-tests.ts run its sync only when invoked directly -- it already exported adaptTest() for reuse, but importing the module kicked off a full network sync.
Co-authored-by: Asroy Cristian Sitorus <asroycristiansitorus@gmail.com> Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: #64743 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Prevent DatabaseSync.close() from finalizing SQLite resources while a JavaScript callback is executing.
SQLite invokes user-defined functions, aggregate functions, authorizers, and changeset callbacks synchronously during database operations. Previously, calling database.close() from one of these callbacks could finalize active statements or the connection while native code was still using them.
This change tracks callback depth and rejects reentrant closes with ERR_INVALID_STATE. It also adds regression coverage for StatementSync.all(), get(), run(), and iterate().