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

Unified Diff: test/mjsunit/asm/atomics-compareexchange.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 | « test/mjsunit/asm/atomics-and.js ('k') | test/mjsunit/asm/atomics-exchange.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/atomics-compareexchange.js
diff --git a/test/mjsunit/asm/atomics-compareexchange.js b/test/mjsunit/asm/atomics-compareexchange.js
index 84d38504b32933c51ee8c5049d3e49975c9fd6f2..dd93395569c287bd85d920f51fbec534a0358108 100644
--- a/test/mjsunit/asm/atomics-compareexchange.js
+++ b/test/mjsunit/asm/atomics-compareexchange.js
@@ -86,8 +86,8 @@ function testElementType(taConstr, f, oobValue, offset) {
assertEquals(50, f(0, 0, 100), name);
assertEquals(50, ta[0]);
// out of bounds
- assertEquals(oobValue, f(-1, 0, 0), name);
- assertEquals(oobValue, f(ta.length, 0, 0), name);
+ assertThrows(function() { f(-1, 0, 0); });
+ assertThrows(function() { f(ta.length, 0, 0); });
}
function testElement(m, offset) {
« no previous file with comments | « test/mjsunit/asm/atomics-and.js ('k') | test/mjsunit/asm/atomics-exchange.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698