For example, given the following input:
function TestClass() {}
TestClass.prototype.aMethod = function() {
return 'returnValue'
};
TestClass.prototype.nested = new TestClass()
const context = new TestClass()
the following,
const template = Handlebars.compile('{{nested.aMethod}}')
template(context, {allowProtoMethodsByDefault: true})
should yield 'returnValue'. Instead, it yields 'undefined'.
PR with failing test-cases submitted: #1859.