1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Fix a JS test which was broken when OMIT_PROGRESS_CALLBACK was _not_ used.

FossilOrigin-Name: fba23150b5b57980f8ed2656a2325f95215ca1e13fc3449b5eec804831dd65c8
This commit is contained in:
stephan
2024-11-21 15:53:31 +00:00
parent 9bf5bea607
commit 2f70d5838a
3 changed files with 13 additions and 10 deletions

View File

@ -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))