aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tester1.c-pp.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-11-21 15:53:31 +0000
committerstephan <stephan@noemail.net>2024-11-21 15:53:31 +0000
commit2f70d5838ac764f2ece98d0231f46459cf533ce6 (patch)
tree55468783f0995225206760319749489a3ee585d9 /ext/wasm/tester1.c-pp.js
parent9bf5bea60709d4afa37a085b86de3651b0ddd5c9 (diff)
downloadsqlite-2f70d5838ac764f2ece98d0231f46459cf533ce6.tar.gz
sqlite-2f70d5838ac764f2ece98d0231f46459cf533ce6.zip
Fix a JS test which was broken when OMIT_PROGRESS_CALLBACK was _not_ used.
FossilOrigin-Name: fba23150b5b57980f8ed2656a2325f95215ca1e13fc3449b5eec804831dd65c8
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))