Index: test/mjsunit/asm/atomics-sub.js |
diff --git a/test/mjsunit/asm/atomics-sub.js b/test/mjsunit/asm/atomics-sub.js |
index 2ad97e479b5ffcda86d455061acb5c794e8bf6de..6789aeda600e9f2040650c62f8b9b748a5904fdf 100644 |
--- a/test/mjsunit/asm/atomics-sub.js |
+++ b/test/mjsunit/asm/atomics-sub.js |
@@ -79,8 +79,8 @@ function testElementType(taConstr, f, offset) { |
assertEquals(20, f(0, 10), name); |
assertEquals(10, 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) { |