fix File::addHelper unknown helper error message

This commit is contained in:
Sebastian McKenzie
2015-02-08 00:01:26 +11:00
parent 689ce048e6
commit 067cf43f52
2 changed files with 2 additions and 2 deletions

View File

@@ -297,7 +297,7 @@ File.prototype.isConsequenceExpressionStatement = function (node) {
File.prototype.addHelper = function (name) {
if (!contains(File.helpers, name)) {
throw new ReferenceError("unknown helper " + name);
throw new ReferenceError("Unknown helper " + name);
}
var program = this.ast.program;

View File

@@ -17,6 +17,6 @@ suite("api", function () {
var file = new File;
assert.throws(function () {
file.addHelper("foob");
}, /unknown declaration foob/);
}, /Unknown helper foob/);
});
});