summaryrefslogtreecommitdiffstats
path: root/ext/wasm/SQLTester/SQLTester.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:16:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:16:48 +0000
commit3640b21e686fef7e3f25dc775112c7d4be43f197 (patch)
treee7fec2ad45891adeada1227d655062cbd201dd5a /ext/wasm/SQLTester/SQLTester.mjs
parentReleasing progress-linux version 3.45.3-1~progress7.99u1. (diff)
downloadsqlite3-3640b21e686fef7e3f25dc775112c7d4be43f197.tar.xz
sqlite3-3640b21e686fef7e3f25dc775112c7d4be43f197.zip
Merging upstream version 3.46.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ext/wasm/SQLTester/SQLTester.mjs')
-rw-r--r--ext/wasm/SQLTester/SQLTester.mjs12
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/wasm/SQLTester/SQLTester.mjs b/ext/wasm/SQLTester/SQLTester.mjs
index a72399a..71c5d4c 100644
--- a/ext/wasm/SQLTester/SQLTester.mjs
+++ b/ext/wasm/SQLTester/SQLTester.mjs
@@ -174,11 +174,17 @@ const Rx = newObj({
squiggly: /[{}]/
});
+
+
const Util = newObj({
toss,
- unlink: function(fn){
- return 0==sqlite3.wasm.sqlite3_wasm_vfs_unlink(0,fn);
+ unlink: function f(fn){
+ if(!f.unlink){
+ f.unlink = sqlite3.wasm.xWrap('sqlite3__wasm_vfs_unlink','int',
+ ['*','string']);
+ }
+ return 0==f.unlink(0,fn);
},
argvToString: (list)=>{
@@ -197,7 +203,7 @@ const Util = newObj({
utf8Encode: (str)=>__utf8Encoder.encode(str),
- strglob: sqlite3.wasm.xWrap('sqlite3_wasm_SQLTester_strglob','int',
+ strglob: sqlite3.wasm.xWrap('sqlite3__wasm_SQLTester_strglob','int',
['string','string'])
})/*Util*/;