Skip to content

Commit

Permalink
Drop extra Error params
Browse files Browse the repository at this point in the history
This was causing a difficult to diagnose failure under IE and doesn’t give us enough value to justify the change.
  • Loading branch information
kpdecker committed Dec 14, 2015
1 parent 8a9c79b commit 63fdb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handlebars/exception.js
Expand Up @@ -12,7 +12,7 @@ function Exception(message, node) {
message += ' - ' + line + ':' + column;
}

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

// 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 63fdb92

Please sign in to comment.