aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-09 18:25:00 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-09 18:25:00 +0300
commit88beddfa91c8f362cc74538937ce883541e77680 (patch)
treec8376767ce770598969f1f4d000ab9b3613524e1 /lib/parse.js
parent1b0aab2ce9e7f429ceeda98ee0cda448085918ec (diff)
downloadtracifyjs-88beddfa91c8f362cc74538937ce883541e77680.tar.gz
tracifyjs-88beddfa91c8f362cc74538937ce883541e77680.zip
make `--comments` keep @cc_on too
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/parse.js b/lib/parse.js
index a66b32a3..2dfb76a6 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -473,14 +473,6 @@ function tokenizer($TEXT, filename) {
S.pos = i + 2;
S.line += text.split("\n").length - 1;
S.newline_before = S.newline_before || text.indexOf("\n") >= 0;
-
- // https://github.com/mishoo/UglifyJS/issues/#issue/100
- if (/^@cc_on/i.test(text)) {
- warn("WARNING: at line " + S.line);
- warn("*** Found \"conditional comment\": " + text);
- warn("*** UglifyJS DISCARDS ALL COMMENTS. This means your code might no longer work properly in Internet Explorer.");
- }
-
return token("comment2", text, true);
});
};
@@ -1493,5 +1485,3 @@ function parse($TEXT, options) {
})();
};
-
-var warn = function() {};