aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/common/SqliteTestUtil.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-09-03 11:41:44 +0000
committerstephan <stephan@noemail.net>2022-09-03 11:41:44 +0000
commitcdefd5d046db3baa83e18b82cac15c54c8e8d60a (patch)
tree872485c3ece0d58775d058d97d04cfff60da6cc3 /ext/wasm/common/SqliteTestUtil.js
parent53f635df55ecfce3baf9fccc1909dad53bd9643e (diff)
downloadsqlite-cdefd5d046db3baa83e18b82cac15c54c8e8d60a.tar.gz
sqlite-cdefd5d046db3baa83e18b82cac15c54c8e8d60a.zip
wasm: minor text and build cleanups.
FossilOrigin-Name: 36ceef94e1935f5e85f79e489cd0ed265a77820fb68329c190794df5e076bf84
Diffstat (limited to 'ext/wasm/common/SqliteTestUtil.js')
-rw-r--r--ext/wasm/common/SqliteTestUtil.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/ext/wasm/common/SqliteTestUtil.js b/ext/wasm/common/SqliteTestUtil.js
index c21469c9b..51cd64108 100644
--- a/ext/wasm/common/SqliteTestUtil.js
+++ b/ext/wasm/common/SqliteTestUtil.js
@@ -122,6 +122,11 @@
sqlite3InitModule() factory function.
*/
self.sqlite3TestModule = {
+ /**
+ Array of functions to call after Emscripten has initialized the
+ wasm module. Each gets passed the Emscripten module object
+ (which is _this_ object).
+ */
postRun: [
/* function(theModule){...} */
],
@@ -135,10 +140,10 @@
console.error.apply(console, Array.prototype.slice.call(arguments));
},
/**
- Called by the module init bits to report loading
- progress. It gets passed an empty argument when loading is
- done (after onRuntimeInitialized() and any this.postRun
- callbacks have been run).
+ Called by the Emscripten module init bits to report loading
+ progress. It gets passed an empty argument when loading is done
+ (after onRuntimeInitialized() and any this.postRun callbacks
+ have been run).
*/
setStatus: function f(text){
if(!f.last){