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

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

Issue 2452073002: Freeze global prototype chain per WebIDL (Closed)
Patch Set: Also freeze named properties objects 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 <!DOCTYPE html>
2 <html>
3 <script>
4 'use strict';
5
6 var global = window;
7
8 while (global !== null) {
9 let thrown = false;
10 let next = global.__proto__;
11 try {
12 global.__proto__ = {};
13 } catch (e) {
14 console.log(e.message);
15 thrown = true;
16 }
17 if (!thrown) console.log("Got through--FIXME");
18 global = next;
19 }
20 if (window.testRunner) {
21 testRunner.dumpAsText();
22 testRunner.notifyDone();
23 }
24 </script>
25 </html>
26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698