aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/testing1.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-08-12 17:55:18 +0000
committerstephan <stephan@noemail.net>2022-08-12 17:55:18 +0000
commit5b0e63eb4c58a9ceb5c6d0d817ab34e75b02c001 (patch)
tree25f28f8dec03cf63097520e24018198aa6f9e6da /ext/wasm/testing1.js
parente1c34624844134521f2485a81ab52a78b554a824 (diff)
downloadsqlite-5b0e63eb4c58a9ceb5c6d0d817ab34e75b02c001.tar.gz
sqlite-5b0e63eb4c58a9ceb5c6d0d817ab34e75b02c001.zip
Minor wasm-related doc clarification and remove an obsolete code comment.
FossilOrigin-Name: 1b1f650a08da93da97ed3a96b9a3e4eac567472c266188c02a9bffe1cf620e53
Diffstat (limited to 'ext/wasm/testing1.js')
-rw-r--r--ext/wasm/testing1.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/ext/wasm/testing1.js b/ext/wasm/testing1.js
index e4b088264..a733156e7 100644
--- a/ext/wasm/testing1.js
+++ b/ext/wasm/testing1.js
@@ -325,15 +325,7 @@
//log("int64_min/max() =",minMaxI64, typeof minMaxI64[0]);
w.xCall('jaccwabyt_test_int64_minmax', pMin, pMax);
T.assert(g64(pMin) === minMaxI64[0], "int64 mismatch").
- assert(g64(pMax) === minMaxI64[1], "int64 mismatch")
- /* ^^^ that will fail, as of this writing, due to
- mismatched getMemValue()/setMemValue() impls in the
- Emscripten-generated glue. We install a
- replacement getMemValue() in sqlite3-api.js to work
- around that bug:
-
- https://github.com/emscripten-core/emscripten/issues/17322
- */;
+ assert(g64(pMax) === minMaxI64[1], "int64 mismatch");
//log("pMin",g64(pMin), "pMax",g64(pMax));
w.setMemValue(pMin, minMaxI64[0], ptrType64);
T.assert(g64(pMin) === minMaxI64[0]).
@@ -348,7 +340,7 @@
log("No BigInt support. Skipping related tests.");
log("\"The problem\" here is that we can manipulate, at the byte level,",
"heap memory to set 64-bit values, but we can't get those values",
- "back into JS because of the lack of 64-bit number support.");
+ "back into JS because of the lack of 64-bit integer support.");
}
}finally{
const x = w.scopedAlloc(1), y = w.scopedAlloc(1), z = w.scopedAlloc(1);