Index: test/mjsunit/asm/atomics-exchange.js |
diff --git a/test/mjsunit/asm/atomics-exchange.js b/test/mjsunit/asm/atomics-exchange.js |
index 6de7b4b954021f61669f7a99751710d5091b7c04..ea9c24693c8ed303d7d60cad0b29654a868d0337 100644 |
--- a/test/mjsunit/asm/atomics-exchange.js |
+++ b/test/mjsunit/asm/atomics-exchange.js |
@@ -80,8 +80,8 @@ function testElementType(taConstr, f, offset) { |
assertEquals(0x7f, f(0, 0xf), name); |
assertEquals(0xf, 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) { |