diff options
author | stephan <stephan@noemail.net> | 2022-12-09 14:46:24 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-12-09 14:46:24 +0000 |
commit | 99f30f1cd485dd81b04de48ae08eed24f5bd0725 (patch) | |
tree | 40a9e1f8438c31fe4ec35c3b8e78dd54e4e7b4b0 /ext/wasm/common/whwasmutil.js | |
parent | edfbde52fdf3a3d11667f0171556876029100898 (diff) | |
download | sqlite-99f30f1cd485dd81b04de48ae08eed24f5bd0725.tar.gz sqlite-99f30f1cd485dd81b04de48ae08eed24f5bd0725.zip |
Refactor the sqlite3_value-to-JS conversion from an internal detail to sqlite3.capi.sqlite3_value_to_js() for use with routines like sqlite3_module::xFilter().
FossilOrigin-Name: f6dbf280f99809a80c99337e4c22a86dea7a35ae41ae9a69144c4502385a0a1f
Diffstat (limited to 'ext/wasm/common/whwasmutil.js')
-rw-r--r-- | ext/wasm/common/whwasmutil.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/wasm/common/whwasmutil.js b/ext/wasm/common/whwasmutil.js index 5de1aad6c..6e9011b7d 100644 --- a/ext/wasm/common/whwasmutil.js +++ b/ext/wasm/common/whwasmutil.js @@ -316,13 +316,11 @@ self.WhWasmUtilInstaller = function(target){ Throws if passed an invalid n. - Pedantic side note: the name "heap" is a bit of a misnomer. In an - Emscripten environment, the memory managed via the stack - allocation API is in the same Memory object as the heap (which - makes sense because otherwise arbitrary pointer X would be - ambiguous: is it in the heap or the stack?). + Pedantic side note: the name "heap" is a bit of a misnomer. In a + WASM environment, the stack and heap memory are all accessed via + the same view(s) of the memory. */ - target.heapForSize = function(n,unsigned = false){ + target.heapForSize = function(n,unsigned = true){ let ctor; const c = (cache.memory && cache.heapSize === cache.memory.buffer.byteLength) ? cache : heapWrappers(); |