diff --git a/spec/regressions.js b/spec/regressions.js index c633a212d..04324e9b6 100644 --- a/spec/regressions.js +++ b/spec/regressions.js @@ -125,6 +125,13 @@ describe('Regressions', function() { it('GH-820: zero pathed rendering', function() { shouldCompileTo('{{foo.bar}}', {foo: 0}, ''); }); + it('GH-837: undefined values for helpers', function() { + var helpers = { + str: function(value) { return value + ''; } + }; + + shouldCompileTo('{{str bar.baz}}', [{}, helpers], 'undefined'); + }); if (Handlebars.AST) { it("can pass through an already-compiled AST via compile/precompile", function() {