Final lint fixes

This commit is contained in:
Samuel Crypto
2018-10-11 18:10:13 -04:00
parent 2a78aceac6
commit 7f252c75b8
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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,