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:
@ -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))
|
||||
|
Reference in New Issue
Block a user