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

Unified Diff: third_party/WebKit/LayoutTests/fast/workers/resources/worker-atomics-wait.js

Issue 2660423003: Atomics.wait throws when called on the main thread. (Closed)
Patch Set: nit 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 | « gin/public/isolate_holder.h ('k') | third_party/WebKit/LayoutTests/fast/workers/worker-atomics-wait.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/workers/resources/worker-atomics-wait.js
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/worker-atomics-wait.js b/third_party/WebKit/LayoutTests/fast/workers/resources/worker-atomics-wait.js
new file mode 100644
index 0000000000000000000000000000000000000000..552235d021174d64075fdc8cbd4829a7c48de1ba
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/worker-atomics-wait.js
@@ -0,0 +1,10 @@
+self.addEventListener('message', function(e) {
+ var view = e.data;
+ try {
+ Atomics.wait(view, 0, 0, 0);
+ postMessage("PASS: Atomics.wait is allowed in a worker.");
+ } catch(e) {
+ postMessage("FAIL: Atomics.wait is not allowed in a worker.");
+ }
+ postMessage("DONE");
+});
« no previous file with comments | « gin/public/isolate_holder.h ('k') | third_party/WebKit/LayoutTests/fast/workers/worker-atomics-wait.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698