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

Unified Diff: test/mjsunit/harmony/futex.js

Issue 2642293002: Add Isolate parameter to disallow Atomics.wait (Closed)
Patch Set: update bytecode_expectations Created 3 years, 11 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/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/futex.js
diff --git a/test/mjsunit/harmony/futex.js b/test/mjsunit/harmony/futex.js
index f90b773aa390aa4031b090fddf6bcc0d9050f609..6790988678eb27c200185da4a7cb45e51ef140ab 100644
--- a/test/mjsunit/harmony/futex.js
+++ b/test/mjsunit/harmony/futex.js
@@ -95,6 +95,15 @@
assertEquals("timed-out", Atomics.wait(i32a, 0, 0, -Infinity));
})();
+(function TestWaitNotAllowed() {
+ %SetAllowAtomicsWait(false);
+ var i32a = new Int32Array(new SharedArrayBuffer(16));
+ assertThrows(function() {
+ Atomics.wait(i32a, 0, 0, -1);
+ });
+ %SetAllowAtomicsWait(true);
+})();
+
//// WORKER ONLY TESTS
if (this.Worker) {
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698