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

Side by Side Diff: third_party/WebKit/LayoutTests/security/immutable-prototype-worker.js

Issue 2452073002: Freeze global prototype chain per WebIDL (Closed)
Patch Set: Test improvements Created 4 years, 1 month 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 importScripts('immutable-prototype.js');
2
3 if (!self.postMessage) {
4 // This is a shared worker - mimic dedicated worker APIs
5 onconnect = function(event) {
6 event.ports[0].onmessage = function(e) {
7 self.postMessage = function (msg) {
8 event.ports[0].postMessage(msg);
9 };
10 run();
11 };
12 };
13 } else {
14 run();
15 }
16
17 function run() {
18 self.postMessage(prototypeChain(self));
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698