diff options
author | stephan <stephan@noemail.net> | 2023-07-13 10:41:41 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-07-13 10:41:41 +0000 |
commit | d41d454fc1e95a6b8d92dd143667392f8effd5d6 (patch) | |
tree | 0e246e622746244f7a9875189b651c6755ac94eb /ext/wasm/scratchpad-wasmfs-main.js | |
parent | 0f0e5700ba0c88de229eacb797d87551d987cf33 (diff) | |
download | sqlite-d41d454fc1e95a6b8d92dd143667392f8effd5d6.tar.gz sqlite-d41d454fc1e95a6b8d92dd143667392f8effd5d6.zip |
More work on the wasmfs build. Resolve the inconsistent argument type passed to sqlite3InitModule() in such builds.
FossilOrigin-Name: 4850a9e2d2b41b91e91b9ef99a6d26ddf11a161b4c970fc00d2d095606729a04
Diffstat (limited to 'ext/wasm/scratchpad-wasmfs-main.js')
-rw-r--r-- | ext/wasm/scratchpad-wasmfs-main.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ext/wasm/scratchpad-wasmfs-main.js b/ext/wasm/scratchpad-wasmfs-main.js index 3fb8d6af0..4fe9449a5 100644 --- a/ext/wasm/scratchpad-wasmfs-main.js +++ b/ext/wasm/scratchpad-wasmfs-main.js @@ -15,6 +15,7 @@ */ 'use strict'; //importScripts('jswasm/sqlite3-wasmfs.js'); +//importScripts('common/SqliteTestUtil.js'); import sqlite3InitModule from './jswasm/sqlite3-wasmfs.mjs'; //console.log('sqlite3InitModule =',sqlite3InitModule); (function(){ @@ -70,15 +71,5 @@ import sqlite3InitModule from './jswasm/sqlite3-wasmfs.mjs'; stdout("Total test time:",(performance.now() - startTime),"ms"); }; - sqlite3InitModule(globalThis.sqlite3TestModule).then((X)=>{ - /* - 2023-07-13: we're passed the Emscripten Module object here - instead of the sqlite3 object. This differs from the canonical - build and is a side effect of WASMFS's requirement - that the module init function (i.e. sqlite3InitModule()) - return its initial arrgument (the Emscripten Module). - */ - stdout("then() got",X.sqlite3,X); - runTests(X.sqlite3 || X); - }); + sqlite3InitModule().then(runTests); })(); |