aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tester1.c-pp.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-07-11 19:50:17 +0000
committerstephan <stephan@noemail.net>2024-07-11 19:50:17 +0000
commit8ee747dda55887775417e13882ffed29868a0865 (patch)
treed2e66d89a31caebabdee244604041ae686bfa581 /ext/wasm/tester1.c-pp.js
parent9958c51a5d9b151aab4b5e6c1dd18188e94e99b6 (diff)
downloadsqlite-8ee747dda55887775417e13882ffed29868a0865.tar.gz
sqlite-8ee747dda55887775417e13882ffed29868a0865.zip
Reformulate the forceReinitIfFailed handling based on feedback, to correct the type-checking and resolve a potential race condition.
FossilOrigin-Name: c4f468309158f9b951137461213fb269d96d15c331256cf392a56c9bed231460
Diffstat (limited to 'ext/wasm/tester1.c-pp.js')
-rw-r--r--ext/wasm/tester1.c-pp.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/wasm/tester1.c-pp.js b/ext/wasm/tester1.c-pp.js
index b1e05a24f..5d24daf15 100644
--- a/ext/wasm/tester1.c-pp.js
+++ b/ext/wasm/tester1.c-pp.js
@@ -3193,11 +3193,13 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
/* Ensure that the forceReinitIfFailed fallback bypasses the VFS init cache... */
cErr = u3 = undefined;
conf2.forceReinitIfFailed = true;
+ conf2.verbosity = 3;
const P3b = await inst(conf2).then(u=>u3 = u).catch((e)=>cErr=e);
T.assert(undefined === cErr)
.assert(P3b === u3)
+ .assert(P3b === await inst(conf2))
.assert(true === await u3.removeVfs())
- .assert(false === await u3.removeVfs());
+ .assert(false === await P3b.removeVfs());
}
}/*OPFS SAH Pool sanity checks*/)