1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Replace use of cpp with the fit-to-purpose c-pp to avoid cpp's C-centric/JS-unfriendly quirks.

FossilOrigin-Name: 49d70f071e918d5d095c807575bb7ce2b287a123261e789e938521b3b409429a
This commit is contained in:
stephan
2022-11-18 02:29:59 +00:00
parent c7c15d1b83
commit ee026c5479
6 changed files with 1573 additions and 48 deletions

View File

@ -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