Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: test/mjsunit/asm/atomics-add.js

Issue 1676613002: [Atomics] Fix atomic access index validation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merge master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/messages.h ('k') | test/mjsunit/asm/atomics-and.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/messages.h ('k') | test/mjsunit/asm/atomics-and.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698