aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tester1.c-pp.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-07-25 16:28:55 +0000
committerstephan <stephan@noemail.net>2024-07-25 16:28:55 +0000
commitd35a69a8da0a5a5c54823df540f0217c1601816b (patch)
treec579f85721c98325fe0cb3c65bd530e929ca208a /ext/wasm/tester1.c-pp.js
parente7840ce6810174625ae9ec116610bb987d252aef (diff)
downloadsqlite-d35a69a8da0a5a5c54823df540f0217c1601816b.tar.gz
sqlite-d35a69a8da0a5a5c54823df540f0217c1601816b.zip
Fix a non-bare-bones-mode test case broken by the previous checkin.
FossilOrigin-Name: 3be729493b76a8b51c19d81543dea2dcb1fc718f81d4f2d9c6e1381789217687
Diffstat (limited to 'ext/wasm/tester1.c-pp.js')
-rw-r--r--ext/wasm/tester1.c-pp.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/wasm/tester1.c-pp.js b/ext/wasm/tester1.c-pp.js
index 6023069bc..fd67dc01c 100644
--- a/ext/wasm/tester1.c-pp.js
+++ b/ext/wasm/tester1.c-pp.js
@@ -1197,12 +1197,11 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
T.assert(db === db.checkRc(0))
.assert(db === sqlite3.oo1.DB.checkRc(db,0))
.assert(null === sqlite3.oo1.DB.checkRc(null,0));
-
this.progressHandlerCount = 0;
if( wasm.compileOptionUsed('OMIT_PROGRESS_CALLBACK') ){
T.assert( !capi.sqlite3_progress_handler );
}else{
- T.assert( capi.sqlite3_progress_handler );
+ T.assert( !!capi.sqlite3_progress_handler );
capi.sqlite3_progress_handler(db, 5, (p)=>{
++this.progressHandlerCount;
return 0;