Index: test/mjsunit/asm/atomics-or.js |
diff --git a/test/mjsunit/asm/atomics-or.js b/test/mjsunit/asm/atomics-or.js |
index 7431e35cf332d92cef2b44c2a1743f59e6a3e6a8..351ce9d112037f7096c5f7793d1001f90c7c396e 100644 |
--- a/test/mjsunit/asm/atomics-or.js |
+++ b/test/mjsunit/asm/atomics-or.js |
@@ -81,8 +81,8 @@ function testElementType(taConstr, f, offset) { |
assertEquals(0xf, f(0, 0x11), name); |
assertEquals(0x1f, 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) { |