aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/post-js-header.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wasm/api/post-js-header.js')
-rw-r--r--ext/wasm/api/post-js-header.js19
1 files changed, 12 insertions, 7 deletions
diff --git a/ext/wasm/api/post-js-header.js b/ext/wasm/api/post-js-header.js
index 7fd82a7d6..77e3cd227 100644
--- a/ext/wasm/api/post-js-header.js
+++ b/ext/wasm/api/post-js-header.js
@@ -7,22 +7,27 @@
installs will be run after the WASM module is loaded, at which
point the sqlite3 JS API bits will get set up.
*/
-if(!Module.postRun) Module.postRun = [];
-Module.postRun.push(function(Module/*the Emscripten-style module object*/){
+Module.runSQLite3PostLoadInit = function(EmscriptenModule/*the Emscripten-style module object*/){
+ /** ^^^ Don't use Module.postRun, as that runs a different time
+ depending on whether this file is built with emcc 3.1.x or
+ 4.0.x. This function name is intentionally obnoxiously verbose to
+ ensure that we don't collide with current and future Emscripten
+ symbol names. */
'use strict';
+ //console.warn("This is the start of Module.runSQLite3PostLoadInit()");
/* This function will contain at least the following:
- - post-js-header.js (this file)
+ - post-js-header.js => this file
- sqlite3-api-prologue.js => Bootstrapping bits to attach the rest to
- common/whwasmutil.js => Replacements for much of Emscripten's glue
- - jaccwaby/jaccwabyt.js => Jaccwabyt (C/JS struct binding)
+ - jaccwabyt/jaccwabyt.js => Jaccwabyt (C/JS struct binding)
- sqlite3-api-glue.js => glues previous parts together
- - sqlite3-api-oo.js => SQLite3 OO API #1
+ - sqlite3-api-oo1.js => SQLite3 OO API #1
- sqlite3-api-worker1.js => Worker-based API
- sqlite3-vfs-helper.c-pp.js => Utilities for VFS impls
- sqlite3-vtab-helper.c-pp.js => Utilities for virtual table impls
- - sqlite3-vfs-opfs.c-pp.js => OPFS VFS
+ - sqlite3-vfs-opfs.c-pp.js => OPFS VFS
- sqlite3-vfs-opfs-sahpool.c-pp.js => OPFS SAHPool VFS
- sqlite3-api-cleanup.js => final API cleanup
- - post-js-footer.js => closes this postRun() function
+ - post-js-footer.js => closes this function
*/