aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-07-13 18:13:52 +0000
committerstephan <stephan@noemail.net>2023-07-13 18:13:52 +0000
commitd655290c99e787ec73ce7516a0e5dfae74065ebc (patch)
tree1e19d8769b390d8caf4745879b84399e28009751 /ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
parentbb9549e0be7abd5516eea9736c4fd2891d14b5d0 (diff)
downloadsqlite-d655290c99e787ec73ce7516a0e5dfae74065ebc.tar.gz
sqlite-d655290c99e787ec73ce7516a0e5dfae74065ebc.zip
Minor cleanups related to reintroducing wasmfs support.
FossilOrigin-Name: 6918a927b5ecd1df5916b70d52d8d5ce289869c3f323e577b7dfc7c939084400
Diffstat (limited to 'ext/wasm/api/sqlite3-vfs-opfs.c-pp.js')
-rw-r--r--ext/wasm/api/sqlite3-vfs-opfs.c-pp.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
index 31099c7ce..f7b9acdf4 100644
--- a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
+++ b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
@@ -833,22 +833,19 @@ const installOpfsVfs = function callee(options){
/* If it turns out that we need to adjust for timezone, see:
https://stackoverflow.com/a/11760121/1458521 */
wasm.poke(pOut, 2440587.5 + (new Date().getTime()/86400000),
- 'double');
+ 'double');
return 0;
},
xCurrentTimeInt64: function(pVfs,pOut){
- // TODO: confirm that this calculation is correct
wasm.poke(pOut, (2440587.5 * 86400000) + new Date().getTime(),
- 'i64');
+ 'i64');
return 0;
},
xDelete: function(pVfs, zName, doSyncDir){
mTimeStart('xDelete');
- opRun('xDelete', wasm.cstrToJs(zName), doSyncDir, false);
- /* We're ignoring errors because we cannot yet differentiate
- between harmless and non-harmless failures. */
+ const rc = opRun('xDelete', wasm.cstrToJs(zName), doSyncDir, false);
mTimeEnd();
- return 0;
+ return rc;
},
xFullPathname: function(pVfs,zName,nOut,pOut){
/* Until/unless we have some notion of "current dir"