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

Side by Side Diff: Source/devtools/scripts/jsdoc-validator/tests/document.js

Issue 659973003: [DevTools] Disallow use of global property "document". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 document.bar();
2 window.document.bar();
3 bar.document();
4 bar.window.document();
5 document();
6 var x = window.document;
7
8 function a(document) {
9 document.bar();
10 document();
11
12 function inner() {
13 var y = document;
14 }
15 }
16
17 function b(bar) {
18 document.bar();
19 document();
20 var document = bar;
21 }
22
23 function c(bar) {
24 document.bar();
25 document();
26 var inner = document + bar;
27 }
28
29 function d(window) {
30 window.document();
31 window.document.bar = 2;
32 }
33
34 /**
35 * @suppressGlobalPropertiesCheck
36 * @param {string} param
37 */
38 function e(param) {
39 document;
40 window.document;
41 }
42
43 /**
44 * @param {string} param
45 */
46 function f(param) {
47 document;
48 window.document;
49 }
50
51 var y = x.document;
52 window.x.document();
53 var z = document.document;
54 var bar = window + window.document;
55
56 self.document = bar;
57 self.addEventListener();
58 self.removeEventListener();
59
60 function g() {
61 var self = this;
62 self.document;
63 }
64
65 function h() { var a = { document: true }; }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698