Skip to content

Commit

Permalink
Fix throw when creating exception object in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker authored and nknapp committed Mar 9, 2017
1 parent 07c2d1a commit 07511e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handlebars/exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function Exception(message, node) {
message += ' - ' + line + ':' + column;
}

let tmp = Error.prototype.constructor.call(this, message);
let tmp = Error.prototype.constructor.call(this, message, loc && loc.source, line);

// Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.
for (let idx = 0; idx < errorProps.length; idx++) {
Expand Down

0 comments on commit 07511e0

Please sign in to comment.