aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/batch-runner.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-09-29 13:17:50 +0000
committerstephan <stephan@noemail.net>2022-09-29 13:17:50 +0000
commitb94a98607a3bd4dd55f4d5ce16f171ba066bafb2 (patch)
tree097b3fae84f287075120e7685458c4d1bb98af60 /ext/wasm/batch-runner.js
parent4b884bb4c77cb4b1e5059395212160f4ee48cc53 (diff)
downloadsqlite-b94a98607a3bd4dd55f4d5ce16f171ba066bafb2.tar.gz
sqlite-b94a98607a3bd4dd55f4d5ce16f171ba066bafb2.zip
Rework the Emscripten-emitted module loader/init function such that it passes on the sqlite3 module, instead of the Emscripten module, to the first then() of sqlite3InitModule()'s returned Promise. This eliminates any need to mention the Emscripten module object in client-side code unless they want to configure it in advance for loading-status reports.
FossilOrigin-Name: 0dbaa0e2b5abf5c23e2039ec90a3055ebb3c063aaf4e556c42546defe6fbb86d
Diffstat (limited to 'ext/wasm/batch-runner.js')
-rw-r--r--ext/wasm/batch-runner.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/wasm/batch-runner.js b/ext/wasm/batch-runner.js
index 3762998b6..ad281c2e9 100644
--- a/ext/wasm/batch-runner.js
+++ b/ext/wasm/batch-runner.js
@@ -604,11 +604,8 @@
}/*run()*/
}/*App*/;
- self.sqlite3TestModule.initSqlite3().then(function(theEmccModule){
- self._MODULE = theEmccModule /* this is only to facilitate testing from the console */;
- sqlite3 = theEmccModule.sqlite3;
- console.log("App",App);
- self.App = App;
- App.run(theEmccModule.sqlite3);
+ self.sqlite3TestModule.initSqlite3().then(function(sqlite3){
+ self.App = App /* only to facilitate dev console access */;
+ App.run(sqlite3);
});
})();