summaryrefslogtreecommitdiffstats
path: root/spec/qunit_spec.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-05-29 15:30:43 -0400
committerkpdecker <kpdecker@gmail.com>2013-05-29 15:30:50 -0400
commit58a0b4f17d5338793c92cf4d104e9c44cc485c5b (patch)
tree4516d889eacbe948283c0e1dc603d2a72981daa1 /spec/qunit_spec.js
parent61f64e9f04ec6039759519371aff76cd504ed5da (diff)
downloadhandlebars.js-58a0b4f17d5338793c92cf4d104e9c44cc485c5b.zip
handlebars.js-58a0b4f17d5338793c92cf4d104e9c44cc485c5b.tar.gz
handlebars.js-58a0b4f17d5338793c92cf4d104e9c44cc485c5b.tar.bz2
Require matching braces in escaped expressions
Fixes #437
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r--spec/qunit_spec.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js
index 31c9b96..317841f 100644
--- a/spec/qunit_spec.js
+++ b/spec/qunit_spec.js
@@ -1571,6 +1571,15 @@ test('GH-534: Object prototype aliases', function() {
delete Object.prototype[0xD834];
});
+test('GH-437: Matching escaping', function() {
+ shouldThrow(function() {
+ CompilerContext.compile('{{{a}}');
+ }, Error);
+ shouldThrow(function() {
+ CompilerContext.compile('{{a}}}');
+ }, Error);
+});
+
suite('Utils');
test('escapeExpression', function() {