Index: test/mjsunit/asm/atomics-and.js |
diff --git a/test/mjsunit/asm/atomics-and.js b/test/mjsunit/asm/atomics-and.js |
index 2e7de75c2e32e3fb8d7eff45c820b971efc335d1..da770bfa88ebd8f77b602536f6630e77058af48f 100644 |
--- a/test/mjsunit/asm/atomics-and.js |
+++ b/test/mjsunit/asm/atomics-and.js |
@@ -79,8 +79,8 @@ function testElementType(taConstr, f, offset) { |
assertEquals(0xf, f(0, 0x19), name); |
assertEquals(0x9, 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) { |