diff options
author | 2023-09-18 03:01:19 -0700 | |
---|---|---|
committer | 2023-09-18 03:01:19 -0700 | |
commit | b27b04690b8746c4cd9aa0d066a7901a5bdf7e82 (patch) | |
tree | 98d22a5096ced0fd552f233beacf39182a393120 /test | |
parent | c7de270bbba05e0fc850290b27d617bda1df2206 (diff) | |
download | bun-b27b04690b8746c4cd9aa0d066a7901a5bdf7e82.tar.gz bun-b27b04690b8746c4cd9aa0d066a7901a5bdf7e82.tar.zst bun-b27b04690b8746c4cd9aa0d066a7901a5bdf7e82.zip |
In `bun:sqlite`, make sure we set the number tag correctly when creating the JSValue (#5655)
* Make sure we set the number tag correctly when returning values from SQLite
* Add DOMJIT test
* Update JSSQLStatement.cpp
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/js/bun/sqlite/sqlite.test.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/js/bun/sqlite/sqlite.test.js b/test/js/bun/sqlite/sqlite.test.js index 7998f7469..6bd72d8a8 100644 --- a/test/js/bun/sqlite/sqlite.test.js +++ b/test/js/bun/sqlite/sqlite.test.js @@ -347,6 +347,13 @@ it("db.query()", () => { ), ).toBe(JSON.stringify([{ id: 1, name: "Hello" }])); + const domjit = db.query("SELECT * FROM test"); + (function (domjit) { + for (let i = 0; i < 100000; i++) { + domjit.get().name; + } + })(domjit); + db.close(); // Check that a closed database doesn't crash |