From: Ed S Date: Tue, 12 Mar 2019 18:15:54 +0000 (+0000) Subject: Fix typo in warning (#3324) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b1c06640665fb4f8bcfe26c8f37e5d14520e5e4c;p=UglifyJS.git Fix typo in warning (#3324) protoype -> prototype --- 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]", ] }