aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]",
]
}