aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-07-27 01:38:19 +0000
committerstephan <stephan@noemail.net>2023-07-27 01:38:19 +0000
commit4cfd54256dca63f95717428416033237e3bad607 (patch)
tree1ec70a483c01866679135af8dee586ba071b0772 /ext/wasm/api
parent93853a48465e5eb14ab347eecc53f2b58a45ee02 (diff)
downloadsqlite-4cfd54256dca63f95717428416033237e3bad607.tar.gz
sqlite-4cfd54256dca63f95717428416033237e3bad607.zip
Accommodate a breaking change in emcc 3.1.44.
FossilOrigin-Name: 2c5dd34199f5bcf729be814b8b46d9997821fe3a39ab12779c93df1bb2fd108d
Diffstat (limited to 'ext/wasm/api')
-rw-r--r--ext/wasm/api/sqlite3-api-cleanup.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-api-cleanup.js b/ext/wasm/api/sqlite3-api-cleanup.js
index 3661464e1..65dbb4eb6 100644
--- a/ext/wasm/api/sqlite3-api-cleanup.js
+++ b/ext/wasm/api/sqlite3-api-cleanup.js
@@ -22,7 +22,9 @@ if('undefined' !== typeof Module){ // presumably an Emscripten build
*/
const SABC = Object.assign(
Object.create(null), {
- exports: Module['asm'],
+ exports: ('undefined'===typeof wasmExports)
+ ? Module['asm']/* emscripten <=3.1.43 */
+ : wasmExports /* emscripten >=3.1.44 */,
memory: Module.wasmMemory /* gets set if built with -sIMPORTED_MEMORY */
},
globalThis.sqlite3ApiConfig || {}