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

Side by Side 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, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 self.addEventListener('message', function(e) {
2 var view = e.data;
3 try {
4 Atomics.wait(view, 0, 0, 0);
5 postMessage("PASS: Atomics.wait is allowed in a worker.");
6 } catch(e) {
7 postMessage("FAIL: Atomics.wait is not allowed in a worker.");
8 }
9 postMessage("DONE");
10 });
OLDNEW
« 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