summaryrefslogtreecommitdiffstats
path: root/spec/javascript-compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-04-07 23:37:38 -0500
committerkpdecker <kpdecker@gmail.com>2015-04-07 23:37:38 -0500
commit2d149e779764cb373be0585c5e493da405062be6 (patch)
tree97ff4511e445c7d0a70161a0b3bbe02e7e5551e9 /spec/javascript-compiler.js
parent81a4d50955b13e7d5e5052d904bb3e8c993ebb88 (diff)
downloadhandlebars.js-2d149e779764cb373be0585c5e493da405062be6.zip
handlebars.js-2d149e779764cb373be0585c5e493da405062be6.tar.gz
handlebars.js-2d149e779764cb373be0585c5e493da405062be6.tar.bz2
Add undefined and null literal support
This adds the UndefinedLiteral and NullLiteral to AST. Fixes #990
Diffstat (limited to 'spec/javascript-compiler.js')
-rw-r--r--spec/javascript-compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascript-compiler.js b/spec/javascript-compiler.js
index fb78658..f47ddeb 100644
--- a/spec/javascript-compiler.js
+++ b/spec/javascript-compiler.js
@@ -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() {