aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-opfs.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-11-18 02:29:59 +0000
committerstephan <stephan@noemail.net>2022-11-18 02:29:59 +0000
commitee026c54794b3196326dc5b1db1c9a714bc84e18 (patch)
tree00832ccc2de1afe85d3f0bf7ae6d0149bdee7101 /ext/wasm/api/sqlite3-api-opfs.js
parentc7c15d1b83574f7ceec81bd76e76521f03efb1c8 (diff)
downloadsqlite-ee026c54794b3196326dc5b1db1c9a714bc84e18.tar.gz
sqlite-ee026c54794b3196326dc5b1db1c9a714bc84e18.zip
Replace use of cpp with the fit-to-purpose c-pp to avoid cpp's C-centric/JS-unfriendly quirks.
FossilOrigin-Name: 49d70f071e918d5d095c807575bb7ce2b287a123261e789e938521b3b409429a
Diffstat (limited to 'ext/wasm/api/sqlite3-api-opfs.js')
-rw-r--r--ext/wasm/api/sqlite3-api-opfs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-api-opfs.js b/ext/wasm/api/sqlite3-api-opfs.js
index 18582400e..e35eed64d 100644
--- a/ext/wasm/api/sqlite3-api-opfs.js
+++ b/ext/wasm/api/sqlite3-api-opfs.js
@@ -167,11 +167,11 @@ const installOpfsVfs = function callee(options){
return promiseReject_(err);
};
const W =
-#ifdef SQLITE_JS_ESM
+//#if SQLITE_JS_ESM
new Worker(new URL(options.proxyUri, import.meta.url));
-#else
+//#else
new Worker(options.proxyUri);
-#endif
+//#endif
W._originalOnError = W.onerror /* will be restored later */;
W.onerror = function(err){
// The error object doesn't contain any useful info when the