diff options
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/module-memory.js')
-rw-r--r-- | deps/v8/test/mjsunit/wasm/module-memory.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/wasm/module-memory.js b/deps/v8/test/mjsunit/wasm/module-memory.js index de05dd46576..2ca5d9a7258 100644 --- a/deps/v8/test/mjsunit/wasm/module-memory.js +++ b/deps/v8/test/mjsunit/wasm/module-memory.js @@ -160,13 +160,15 @@ function testOOBThrows() { assertEquals(0, write()); } - + // Note that this test might be run concurrently in multiple Isolates, which + // makes an exact comparison of the expected trap count unreliable. But is is + // still possible to check the lower bound for the expected trap count. for (offset = 65534; offset < 66536; offset++) { const trap_count = %GetWasmRecoveredTrapCount(); assertTraps(kTrapMemOutOfBounds, read); assertTraps(kTrapMemOutOfBounds, write); if (%IsWasmTrapHandlerEnabled()) { - assertEquals(trap_count + 2, %GetWasmRecoveredTrapCount()); + assertTrue(trap_count + 2 <= %GetWasmRecoveredTrapCount()); } } } |