Index: test/mjsunit/asm/atomics-compareexchange.js |
diff --git a/test/mjsunit/asm/atomics-compareexchange.js b/test/mjsunit/asm/atomics-compareexchange.js |
index 84d38504b32933c51ee8c5049d3e49975c9fd6f2..dd93395569c287bd85d920f51fbec534a0358108 100644 |
--- a/test/mjsunit/asm/atomics-compareexchange.js |
+++ b/test/mjsunit/asm/atomics-compareexchange.js |
@@ -86,8 +86,8 @@ function testElementType(taConstr, f, oobValue, offset) { |
assertEquals(50, f(0, 0, 100), name); |
assertEquals(50, ta[0]); |
// out of bounds |
- assertEquals(oobValue, f(-1, 0, 0), name); |
- assertEquals(oobValue, f(ta.length, 0, 0), name); |
+ assertThrows(function() { f(-1, 0, 0); }); |
+ assertThrows(function() { f(ta.length, 0, 0); }); |
} |
function testElement(m, offset) { |