aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-12-06 08:46:39 +0000
committerstephan <stephan@noemail.net>2022-12-06 08:46:39 +0000
commit75435f8b2ddff951d48cbe5271f3549b0b9f3b5a (patch)
treeddad87d4fc188f0c82efdbfd037f0358d036c32a /ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
parent671386c6376b00363ef24fe8732d9e8de1078a7d (diff)
downloadsqlite-75435f8b2ddff951d48cbe5271f3549b0b9f3b5a.tar.gz
sqlite-75435f8b2ddff951d48cbe5271f3549b0b9f3b5a.zip
Rename wasm.cstringToJs() to wasm.cstrToJs() for consistency with other wasm.cstr... APIs.
FossilOrigin-Name: cbf483ea0ba3e6dc08ad7ed654380f818544b4c3cedfdb8aa848a83298268ceb
Diffstat (limited to 'ext/wasm/api/sqlite3-vfs-opfs.c-pp.js')
-rw-r--r--ext/wasm/api/sqlite3-vfs-opfs.c-pp.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
index f5a1eb6cc..99d79641f 100644
--- a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
+++ b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
@@ -803,7 +803,7 @@ const installOpfsVfs = function callee(options){
const vfsSyncWrappers = {
xAccess: function(pVfs,zName,flags,pOut){
mTimeStart('xAccess');
- const rc = opRun('xAccess', wasm.cstringToJs(zName));
+ const rc = opRun('xAccess', wasm.cstrToJs(zName));
wasm.setMemValue( pOut, (rc ? 0 : 1), 'i32' );
mTimeEnd();
return 0;
@@ -823,7 +823,7 @@ const installOpfsVfs = function callee(options){
},
xDelete: function(pVfs, zName, doSyncDir){
mTimeStart('xDelete');
- opRun('xDelete', wasm.cstringToJs(zName), doSyncDir, false);
+ opRun('xDelete', wasm.cstrToJs(zName), doSyncDir, false);
/* We're ignoring errors because we cannot yet differentiate
between harmless and non-harmless failures. */
mTimeEnd();
@@ -855,7 +855,7 @@ const installOpfsVfs = function callee(options){
C-string here. */
opfsFlags |= state.opfsFlags.OPFS_UNLOCK_ASAP;
}
- zName = wasm.cstringToJs(zName);
+ zName = wasm.cstrToJs(zName);
}
const fh = Object.create(null);
fh.fid = pFile;
@@ -1231,7 +1231,7 @@ const installOpfsVfs = function callee(options){
const readBuf = wasm.scopedAlloc(16);
rc = ioSyncWrappers.xRead(sq3File.pointer, readBuf, 6, 2);
wasm.setMemValue(readBuf+6,0);
- let jRead = wasm.cstringToJs(readBuf);
+ let jRead = wasm.cstrToJs(readBuf);
log("xRead() got:",jRead);
if("sanity"!==jRead) toss("Unexpected xRead() value.");
if(vfsSyncWrappers.xSleep){