Add undefined and null literal support

This adds the UndefinedLiteral and NullLiteral to AST.

Fixes #990
This commit is contained in:
kpdecker
2015-04-07 23:37:38 -05:00
parent 81a4d50955
commit 2d149e7797
12 changed files with 65 additions and 2 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() {