diff options
Diffstat (limited to 'ext/wasm/sqlite3-opfs-async-proxy.js')
-rw-r--r-- | ext/wasm/sqlite3-opfs-async-proxy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wasm/sqlite3-opfs-async-proxy.js b/ext/wasm/sqlite3-opfs-async-proxy.js index 7eb12425c..634659c73 100644 --- a/ext/wasm/sqlite3-opfs-async-proxy.js +++ b/ext/wasm/sqlite3-opfs-async-proxy.js @@ -301,7 +301,7 @@ const vfsAsyncImpls = { const fh = __openFiles[fid]; try{ affirmNotRO('xTruncate', fh); - await fh.accessHandle.truncate(size); + await fh.accessHandle.truncate(Number(size)); }catch(e){ error("xTruncate():",e,fh); rc = state.sq3Codes.SQLITE_IOERR_TRUNCATE; |