Truly independent web browser
Tests/LibJS: Skip an exit count check when the JIT forces exits
Andreas Klingdc474b2298db
diff --git a/Tests/LibJS/Runtime/jit/typed-array-storage.js b/Tests/LibJS/Runtime/jit/typed-array-storage.jsindex 20008638b1d..d2da720c3ab 100644--- a/Tests/LibJS/Runtime/jit/typed-array-storage.js+++ b/Tests/LibJS/Runtime/jit/typed-array-storage.js@@ -219,6 +219,7 @@ test("keyed accesses compiled after out-of-bounds exits take the slow path oncestorage.buffer.transfer();expect(read(2)).toBeUndefined();expect(read(0)).toBeUndefined();- expect(jit.exitCount(read)).toBe(0);+ // NB: An exit forced at the bounds check comes before the out-of-bounds exit, which then goes unrecorded.+ if (!jit.forcesExits) expect(jit.exitCount(read)).toBe(0);}});