Fix typo in warning (#3324)
authorEd S <ejsanders@gmail.com>
Tue, 12 Mar 2019 18:15:54 +0000 (18:15 +0000)
committerAlex Lam S.L <alexlamsl@gmail.com>
Tue, 12 Mar 2019 18:15:54 +0000 (02:15 +0800)
protoype -> prototype

lib/compress.js
test/compress/issue-2719.js

index df33a5c..33f472e 100644 (file)
@@ -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,
index c8b0918..dc37f40 100644 (file)
@@ -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]",
     ]
 }