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.
This commit is contained in:
kpdecker
2015-12-14 02:19:03 -06:00
parent 8a9c79b799
commit 63fdb92472
+1 -1
View File
@@ -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++) {