aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/pre-js.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/pre-js.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/pre-js.js')
-rw-r--r--ext/wasm/api/pre-js.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/wasm/api/pre-js.js b/ext/wasm/api/pre-js.js
index f959c3307..c6d0683ff 100644
--- a/ext/wasm/api/pre-js.js
+++ b/ext/wasm/api/pre-js.js
@@ -29,9 +29,9 @@ sqlite3InitModuleState.debugModule('self.location =',self.location);
4) If none of the above apply, (prefix+path) is returned.
*/
Module['locateFile'] = function(path, prefix) {
-#ifdef SQLITE_JS_ESM
+//#if SQLITE_JS_ESM
return new URL(path, import.meta.url).href;
-#else
+//#else
'use strict';
let theFile;
const up = this.urlParams;
@@ -51,7 +51,7 @@ Module['locateFile'] = function(path, prefix) {
"result =", theFile
);
return theFile;
-#endif /* SQLITE_JS_EMS */
+//#endif /* SQLITE_JS_EMS */
}.bind(sqlite3InitModuleState);
/**