From f9efd8a272c50e65e3f983ed3f70c1ee2b748753 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 7 Feb 2015 23:50:56 +1100 Subject: [PATCH] fix error message in File::addHelper --- lib/6to5/transformation/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/transformation/file.js b/lib/6to5/transformation/file.js index 03265bea7b..57cdf6ea49 100644 --- a/lib/6to5/transformation/file.js +++ b/lib/6to5/transformation/file.js @@ -297,7 +297,7 @@ File.prototype.isConsequenceExpressionStatement = function (node) { File.prototype.addHelper = function (name) { if (!contains(File.helpers, name)) { - throw new ReferenceError("unknown declaration " + name); + throw new ReferenceError("unknown helper " + name); } var program = this.ast.program;