aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/testing-worker1-promiser.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-08-25 11:39:12 +0000
committerstephan <stephan@noemail.net>2022-08-25 11:39:12 +0000
commit9afff9f3c539516c29ce0752b5b84adf8f6ebc19 (patch)
tree3d10d4a2121882d143ac56235f4e148f9abba1db /ext/wasm/testing-worker1-promiser.js
parent407f75378e2bfebfd21ca56b6986154f0c35d1ac (diff)
downloadsqlite-9afff9f3c539516c29ce0752b5b84adf8f6ebc19.tar.gz
sqlite-9afff9f3c539516c29ce0752b5b84adf8f6ebc19.zip
Refactor and expand the worker1 docs, consolidating them into the top of their file instead of scattered around the internals. Accommodate an API change from yesterday in demo-oo1.js.
FossilOrigin-Name: 0a65747047322b7b585e281ac275e437ce3f46e1d06105c19117213929a906ad
Diffstat (limited to 'ext/wasm/testing-worker1-promiser.js')
-rw-r--r--ext/wasm/testing-worker1-promiser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wasm/testing-worker1-promiser.js b/ext/wasm/testing-worker1-promiser.js
index 63401033c..4cc654788 100644
--- a/ext/wasm/testing-worker1-promiser.js
+++ b/ext/wasm/testing-worker1-promiser.js
@@ -44,7 +44,7 @@
w.onerror = (event)=>error("worker.onerror",event);
return w;
},
- //debug: (...args)=>console.debug('worker debug',...args),
+ debug: 1 ? undefined : (...args)=>console.debug('worker debug',...args),
onunhandled: function(ev){
error("Unhandled worker message:",ev.data);
},
@@ -95,7 +95,7 @@
.assert(r.persistent
? (dbFilename!==r.filename)
: (dbFilename==r.filename))
- .assert(ev.dbId)
+ .assert(ev.dbId === r.dbId)
.assert(ev.messageId)
.assert(promiserConfig.dbId === ev.dbId);
}).then(runTests2);