aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-07-12 09:30:13 +0000
committerstephan <stephan@noemail.net>2023-07-12 09:30:13 +0000
commitb3b64179dfca82f9bb5d7ad6e9fe48eb6b0acd36 (patch)
treeb4bb947699c69f7a1b4887d27868c8266601d5c1 /ext/wasm/api
parenta17b04f84035ffc5f979cfa2b776c2290b982e87 (diff)
downloadsqlite-b3b64179dfca82f9bb5d7ad6e9fe48eb6b0acd36.tar.gz
sqlite-b3b64179dfca82f9bb5d7ad6e9fe48eb6b0acd36.zip
Internal JS doc fix.
FossilOrigin-Name: 7c5ea02205a360a11fa9043be12c678eb7fe6f6a0b63b09a3dc976beae881e3f
Diffstat (limited to 'ext/wasm/api')
-rw-r--r--ext/wasm/api/sqlite3-api-cleanup.js2
-rw-r--r--ext/wasm/api/sqlite3-api-prologue.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-api-cleanup.js b/ext/wasm/api/sqlite3-api-cleanup.js
index d38b401bf..3661464e1 100644
--- a/ext/wasm/api/sqlite3-api-cleanup.js
+++ b/ext/wasm/api/sqlite3-api-cleanup.js
@@ -23,7 +23,7 @@ if('undefined' !== typeof Module){ // presumably an Emscripten build
const SABC = Object.assign(
Object.create(null), {
exports: Module['asm'],
- memory: Module.wasmMemory /* gets set if built with -sIMPORT_MEMORY */
+ memory: Module.wasmMemory /* gets set if built with -sIMPORTED_MEMORY */
},
globalThis.sqlite3ApiConfig || {}
);
diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js
index c882d5b24..77739db57 100644
--- a/ext/wasm/api/sqlite3-api-prologue.js
+++ b/ext/wasm/api/sqlite3-api-prologue.js
@@ -53,7 +53,7 @@
- `memory`[^1]: optional WebAssembly.Memory object, defaulting to
`exports.memory`. In Emscripten environments this should be set
- to `Module.wasmMemory` if the build uses `-sIMPORT_MEMORY`, or be
+ to `Module.wasmMemory` if the build uses `-sIMPORTED_MEMORY`, or be
left undefined/falsy to default to `exports.memory` when using
WASM-exported memory.
@@ -809,7 +809,7 @@ globalThis.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
|| toss3("Missing API config.exports (WASM module exports)."),
/**
- When Emscripten compiles with `-sIMPORT_MEMORY`, it
+ When Emscripten compiles with `-sIMPORTED_MEMORY`, it
initalizes the heap and imports it into wasm, as opposed to
the other way around. In this case, the memory is not
available via this.exports.memory.