Skip to content

Commit 889e879

Browse files
committed
add comments
1 parent 7495875 commit 889e879

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

test/compress/global_defs.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ object: {
4141
}
4242
input: {
4343
function f(CONFIG) {
44+
// CONFIG not global - do not replace
4445
return CONFIG.VALUE;
4546
}
4647
function g() {
4748
var CONFIG = { VALUE: 1 };
49+
// CONFIG not global - do not replace
4850
return CONFIG.VALUE;
4951
}
5052
function h() {
@@ -78,10 +80,12 @@ expanded: {
7880
}
7981
input: {
8082
function f(CONFIG) {
83+
// CONFIG not global - do not replace
8184
return CONFIG.VALUE;
8285
}
8386
function g() {
8487
var CONFIG = { VALUE: 1 };
88+
// CONFIG not global - do not replace
8589
return CONFIG.VALUE;
8690
}
8791
function h() {
@@ -136,8 +140,8 @@ mixed: {
136140
console.log(CONFIG);
137141
}
138142
expect_warnings: [
139-
'WARN: global_defs CONFIG.VALUE redefined [test/compress/global_defs.js:122,22]',
140-
'WARN: global_defs CONFIG.VALUE redefined [test/compress/global_defs.js:123,22]',
141-
'WARN: global_defs CONFIG.VALUE redefined [test/compress/global_defs.js:125,8]',
143+
'WARN: global_defs CONFIG.VALUE redefined [test/compress/global_defs.js:126,22]',
144+
'WARN: global_defs CONFIG.VALUE redefined [test/compress/global_defs.js:127,22]',
145+
'WARN: global_defs CONFIG.VALUE redefined [test/compress/global_defs.js:129,8]',
142146
]
143147
}

0 commit comments

Comments
 (0)