Skip to content

Commit

Permalink
fixup: do not write "length" to wrapped helper functions
Browse files Browse the repository at this point in the history
- does not work in IE
  • Loading branch information
nknapp committed Jan 8, 2020
1 parent 2aa2572 commit a4acfd6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/handlebars/internal/wrapHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ export function wrapHelper(helper, transformOptionsFn) {
arguments[arguments.length - 1] = transformOptionsFn(options);
return helper.apply(this, arguments);
};
Object.defineProperty(wrapper, 'length', { value: helper.length });
return wrapper;
}

0 comments on commit a4acfd6

Please sign in to comment.