Skip to content

Crashes on no-parameter {{#each}} #671

@stepancheg

Description

@stepancheg

Code:

var template = Handlebars.compile('{{#each}} {{this}}{{/each}}');
var result = template([ 'aaa', 'bbb ']);

Should produce

aaa bbb

Actually it fails with:

TypeError: options is undefined 
var fn = options.fn, inverse = options.inverse;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions