From 0763a747c4c95815c1669456ac3716553e013607 Mon Sep 17 00:00:00 2001 From: LiviaMedeiros Date: Tue, 29 Aug 2023 15:53:38 +0800 Subject: [PATCH] squash: lint --- ext/node/polyfills/internal/errors.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/node/polyfills/internal/errors.ts b/ext/node/polyfills/internal/errors.ts index 8a9029f36b..dca3892bf4 100644 --- a/ext/node/polyfills/internal/errors.ts +++ b/ext/node/polyfills/internal/errors.ts @@ -368,7 +368,7 @@ export class NodeSyntaxError extends NodeErrorAbstraction constructor(code: string, message: string) { super(SyntaxError.prototype.name, code, message); Object.setPrototypeOf(this, SyntaxError.prototype); - Object.defineProperty(this, 'toString', { + Object.defineProperty(this, "toString", { configurable: true, enumerable: false, value: function toString() { @@ -383,7 +383,7 @@ export class NodeRangeError extends NodeErrorAbstraction { constructor(code: string, message: string) { super(RangeError.prototype.name, code, message); Object.setPrototypeOf(this, RangeError.prototype); - Object.defineProperty(this, 'toString', { + Object.defineProperty(this, "toString", { configurable: true, enumerable: false, value: function toString() { @@ -398,7 +398,7 @@ export class NodeTypeError extends NodeErrorAbstraction implements TypeError { constructor(code: string, message: string) { super(TypeError.prototype.name, code, message); Object.setPrototypeOf(this, TypeError.prototype); - Object.defineProperty(this, 'toString', { + Object.defineProperty(this, "toString", { configurable: true, enumerable: false, value: function toString() { @@ -413,7 +413,7 @@ export class NodeURIError extends NodeErrorAbstraction implements URIError { constructor(code: string, message: string) { super(URIError.prototype.name, code, message); Object.setPrototypeOf(this, URIError.prototype); - Object.defineProperty(this, 'toString', { + Object.defineProperty(this, "toString", { configurable: true, enumerable: false, value: function toString() { @@ -517,7 +517,7 @@ class NodeSystemError extends NodeErrorAbstraction { }); } - Object.defineProperty(this, 'toString', { + Object.defineProperty(this, "toString", { configurable: true, enumerable: false, value: function toString() {