From 1a14441e633ba7979ef2c0c47b015352480edb35 Mon Sep 17 00:00:00 2001 From: Joe Portner <5295965+jportner@users.noreply.github.com> Date: Sat, 11 Mar 2023 00:36:09 -0500 Subject: [PATCH] Make toString property writable, configurable, and enumerable --- source-map-support.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source-map-support.js b/source-map-support.js index 9e3cfb0..4130268 100644 --- a/source-map-support.js +++ b/source-map-support.js @@ -366,7 +366,7 @@ function cloneCallSite(frame) { // cannot have the property changed using an assignment. If using strict mode, attempting that will cause an error. If not using strict // mode, attempting that will be silently ignored. // However, we can still explicitly shadow the prototype's "toString" property by defining a new "toString" property on this object. - Object.defineProperty(object, 'toString', { value: CallSiteToString }); + Object.defineProperty(object, 'toString', { value: CallSiteToString, writable: true, enumerable: true, configurable: true }); return object; }