diff options
author | stephan <stephan@noemail.net> | 2022-11-18 02:29:59 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-11-18 02:29:59 +0000 |
commit | ee026c54794b3196326dc5b1db1c9a714bc84e18 (patch) | |
tree | 00832ccc2de1afe85d3f0bf7ae6d0149bdee7101 /ext/wasm/api/sqlite3-api-opfs.js | |
parent | c7c15d1b83574f7ceec81bd76e76521f03efb1c8 (diff) | |
download | sqlite-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.js | 6 |
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 |