Index: test/mjsunit/asm/atomics-xor.js |
diff --git a/test/mjsunit/asm/atomics-xor.js b/test/mjsunit/asm/atomics-xor.js |
index 990f8427a05c48f6c0155ca83cb1560b9aa4a3fd..13c64407299ae02cc7690e9e125641874be782d2 100644 |
--- a/test/mjsunit/asm/atomics-xor.js |
+++ b/test/mjsunit/asm/atomics-xor.js |
@@ -78,8 +78,8 @@ function testElementType(taConstr, f, offset) { |
assertEquals(0xf, f(0, 0x11), name); |
assertEquals(0x1e, ta[0]); |
// out of bounds |
- assertEquals(0, f(-1, 0), name); |
- assertEquals(0, f(ta.length, 0), name); |
+ assertThrows(function() { f(-1, 0); }); |
+ assertThrows(function() { f(ta.length, 0); }); |
} |
function testElement(m, offset) { |