aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd S <ejsanders@gmail.com>2019-03-12 18:15:54 +0000
committerAlex Lam S.L <alexlamsl@gmail.com>2019-03-13 02:15:54 +0800
commitb1c06640665fb4f8bcfe26c8f37e5d14520e5e4c (patch)
tree6e6aab8e6988e5c2b7bd9d7ba1e93d87273ff1ab
parentea999b0e9261a9035af5c1f35ffe68bb83f29719 (diff)
downloadtracifyjs-b1c06640665fb4f8bcfe26c8f37e5d14520e5e4c.tar.gz
tracifyjs-b1c06640665fb4f8bcfe26c8f37e5d14520e5e4c.zip
Fix typo in warning (#3324)
protoype -> prototype
-rw-r--r--lib/compress.js2
-rw-r--r--test/compress/issue-2719.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/compress.js b/lib/compress.js
index df33a5c3..33f472ea 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -6423,7 +6423,7 @@ merge(Compressor.prototype, {
OPT(AST_Dot, function(self, compressor) {
if (self.property == "arguments" || self.property == "caller") {
- compressor.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]", {
+ compressor.warn("Function.prototype.{prop} not supported [{file}:{line},{col}]", {
prop: self.property,
file: self.start.file,
line: self.start.line,
diff --git a/test/compress/issue-2719.js b/test/compress/issue-2719.js
index c8b0918e..dc37f404 100644
--- a/test/compress/issue-2719.js
+++ b/test/compress/issue-2719.js
@@ -26,7 +26,7 @@ warn: {
}().length);
}
expect_warnings: [
- "WARN: Function.protoype.caller not supported [test/compress/issue-2719.js:5,19]",
- "WARN: Function.protoype.arguments not supported [test/compress/issue-2719.js:5,19]",
+ "WARN: Function.prototype.caller not supported [test/compress/issue-2719.js:5,19]",
+ "WARN: Function.prototype.arguments not supported [test/compress/issue-2719.js:5,19]",
]
}