Allow undefined and null in helper names

This commit is contained in:
kpdecker
2015-04-13 21:18:53 -05:00
parent 37a664bf64
commit dfd141cd35
4 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ describe('javascript-compiler api', function() {
// Tests nameLookup dot vs. bracket behavior. Bracket is required in certain cases
// to avoid errors in older browsers.
it('should handle reserved words', function() {
shouldCompileTo("{{foo}} {{~[null]~}}", { foo: "food" }, "food");
shouldCompileTo("{{foo}} {{~null~}}", { foo: "food" }, "food");
});
});
describe('#compilerInfo', function() {