diff options
author | drh <> | 2023-11-24 13:41:20 +0000 |
---|---|---|
committer | drh <> | 2023-11-24 13:41:20 +0000 |
commit | ac8b6e70c9b74ad10f446edc72fb1f78b5560a51 (patch) | |
tree | 5e01091f498788377277c82d203a8ff83a195e6b /ext/wasm/api/sqlite3-worker1-promiser.c-pp.js | |
parent | cf72606a7d05c7fc3b51ba596db013d51eb73d4b (diff) | |
parent | 77044f30a2f4ac4a0d80159f797e05629373976f (diff) | |
download | sqlite-ac8b6e70c9b74ad10f446edc72fb1f78b5560a51.tar.gz sqlite-ac8b6e70c9b74ad10f446edc72fb1f78b5560a51.zip |
Merge the latest trunk enhancements and fixes into the jsonb branch.
FossilOrigin-Name: a838ebcbbd9f554fd84a1d3176fb572faaef7d0ec0675f1a5bf9430865dafae0
Diffstat (limited to 'ext/wasm/api/sqlite3-worker1-promiser.c-pp.js')
-rw-r--r-- | ext/wasm/api/sqlite3-worker1-promiser.c-pp.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js b/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js index bad599673..1f88b713a 100644 --- a/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js +++ b/ext/wasm/api/sqlite3-worker1-promiser.c-pp.js @@ -247,9 +247,8 @@ globalThis.sqlite3Worker1Promiser = function callee(config = callee.defaultConfi globalThis.sqlite3Worker1Promiser.defaultConfig = { worker: function(){ //#if target=es6-bundler-friendly - return new Worker("sqlite3-worker1-bundler-friendly.mjs",{ - type: 'module' /* Noting that neither Firefox nor Safari suppor this, - as of this writing. */ + return new Worker(new URL("sqlite3-worker1-bundler-friendly.mjs", import.meta.url),{ + type: 'module' }); //#else let theJs = "sqlite3-worker1.js"; @@ -267,8 +266,12 @@ globalThis.sqlite3Worker1Promiser.defaultConfig = { } return new Worker(theJs + globalThis.location.search); //#endif - }.bind({ + } +//#ifnot target=es6-bundler-friendly + .bind({ currentScript: globalThis?.document?.currentScript - }), + }) +//#endif + , onerror: (...args)=>console.error('worker1 promiser error',...args) }; |