summaryrefslogtreecommitdiffstats
path: root/spec/javascript-compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-04-13 21:18:53 -0500
committerkpdecker <kpdecker@gmail.com>2015-04-13 21:18:53 -0500
commitdfd141cd3566c52c271c7470ff690fa6ace6f548 (patch)
tree0729215dc4afd922dc8b7b9e672f6a2a194f0c21 /spec/javascript-compiler.js
parent37a664bf6438bde0ee827a68da4cbd95a21cf52e (diff)
downloadhandlebars.js-dfd141cd3566c52c271c7470ff690fa6ace6f548.zip
handlebars.js-dfd141cd3566c52c271c7470ff690fa6ace6f548.tar.gz
handlebars.js-dfd141cd3566c52c271c7470ff690fa6ace6f548.tar.bz2
Allow undefined and null in helper names
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 f47ddeb..fb78658 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() {