aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/test-opfs-vfs.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-10-19 04:44:58 +0000
committerstephan <stephan@noemail.net>2022-10-19 04:44:58 +0000
commitcd0df83c156d12c89bcbe41420af51d83444855d (patch)
treef6e70858e5441d36916c58d053a44643a138bc86 /ext/wasm/test-opfs-vfs.js
parent71de8e02416aa9a4ad90ac6958ff3fa025a33d2d (diff)
downloadsqlite-cd0df83c156d12c89bcbe41420af51d83444855d.tar.gz
sqlite-cd0df83c156d12c89bcbe41420af51d83444855d.zip
Apply considerable acrobatics to get the JS/WASM deliverables building to and loadable from a directory other than the one which contains the app-level code. Requires an only-slightly-leaky abstraction of passing a URL argument when loading sqlite3.js but provides much greater flexibility in where the JS/WASM files are located.
FossilOrigin-Name: 6d468dab9eb84d4548f68014959f02fe4f66455472ff24fe729382bb2972e3d1
Diffstat (limited to 'ext/wasm/test-opfs-vfs.js')
-rw-r--r--ext/wasm/test-opfs-vfs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wasm/test-opfs-vfs.js b/ext/wasm/test-opfs-vfs.js
index 583871b7d..e22acc0e3 100644
--- a/ext/wasm/test-opfs-vfs.js
+++ b/ext/wasm/test-opfs-vfs.js
@@ -76,7 +76,7 @@ const tryOpfsVfs = async function(sqlite3){
log("Done!");
}/*tryOpfsVfs()*/;
-importScripts('sqlite3.js');
+importScripts('jswasm/sqlite3.js');
self.sqlite3InitModule()
.then((sqlite3)=>tryOpfsVfs(sqlite3))
.catch((e)=>{