aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tester1.c-pp.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wasm/tester1.c-pp.js')
-rw-r--r--ext/wasm/tester1.c-pp.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/wasm/tester1.c-pp.js b/ext/wasm/tester1.c-pp.js
index 4347c8fd7..7ed278020 100644
--- a/ext/wasm/tester1.c-pp.js
+++ b/ext/wasm/tester1.c-pp.js
@@ -1248,8 +1248,11 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
let st = this.db.prepare(
new TextEncoder('utf-8').encode("select 3 as a")
);
- //debug("statement =",st);
- T.assert( !this.progressHandlerCount );
+ if( wasm.compileOptionUsed('OMIT_PROGRESS_CALLBACK') ) {
+ T.assert( !this.progressHandlerCount );
+ }else{
+ T.assert( 1===this.progressHandlerCount, "Checking this.progressHandlerCount" );
+ }
let rc;
try {
T.assert(wasm.isPtr(st.pointer))