Merge branch '4.x'

# Conflicts:
#	lib/handlebars/compiler/javascript-compiler.js
This commit is contained in:
Nils Knappmeier
2019-10-27 17:26:57 +01:00
+11
View File
@@ -334,4 +334,15 @@ describe('Regressions', function() {
}, 'useData': true});
}
});
it('should allow hash with protected array names', function() {
var obj = {array: [1], name: 'John'};
var helpers = {
helpa: function(options) {
return options.hash.length;
}
};
shouldCompileTo('{{helpa length="foo"}}', [obj, helpers], 'foo');
});
});