Index: test/mjsunit/asm/atomics-add.js |
diff --git a/test/mjsunit/asm/atomics-add.js b/test/mjsunit/asm/atomics-add.js |
index 9a07ecf2b1a1992cc179805511b38839781790f7..abb7c98030854833c4d0d95f158b7326b6d4989e 100644 |
--- a/test/mjsunit/asm/atomics-add.js |
+++ b/test/mjsunit/asm/atomics-add.js |
@@ -78,8 +78,8 @@ function testElementType(taConstr, f, offset) { |
assertEquals(10, f(0, 10), name); |
assertEquals(20, 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) { |