diff options
author | kpdecker <kpdecker@gmail.com> | 2015-12-14 02:19:03 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2015-12-14 02:24:06 -0600 |
commit | 63fdb92472cf7f6f8a576baa31f4aa2c5d1b643c (patch) | |
tree | 393a03e443839567bafb5a25d08d2a9e15bda31f | |
parent | 8a9c79b799797c7940ee0152201f2303f3b03472 (diff) | |
download | handlebars.js-63fdb92472cf7f6f8a576baa31f4aa2c5d1b643c.zip handlebars.js-63fdb92472cf7f6f8a576baa31f4aa2c5d1b643c.tar.gz handlebars.js-63fdb92472cf7f6f8a576baa31f4aa2c5d1b643c.tar.bz2 |
Drop extra Error params
This was causing a difficult to diagnose failure under IE and doesn’t give us enough value to justify the change.
-rw-r--r-- | lib/handlebars/exception.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/exception.js b/lib/handlebars/exception.js index af675d9..08ae531 100644 --- a/lib/handlebars/exception.js +++ b/lib/handlebars/exception.js @@ -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++) { |