Final lint fixes
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
if (!("toJSON" in Error.prototype))
|
||||
Object.defineProperty(Error.prototype, "toJSON", {
|
||||
value: function() {
|
||||
let alt = {};
|
||||
const alt = {};
|
||||
|
||||
Object.getOwnPropertyNames(this).forEach(function(key) {
|
||||
alt[key] = this[key];
|
||||
}, this);
|
||||
|
||||
|
||||
return alt;
|
||||
},
|
||||
configurable: true,
|
||||
|
||||
Reference in New Issue
Block a user