Skip to content

Commit 1a14441

Browse files
committed
Make toString property writable, configurable, and enumerable
1 parent 6f40a78 commit 1a14441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source-map-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ function cloneCallSite(frame) {
366366
// cannot have the property changed using an assignment. If using strict mode, attempting that will cause an error. If not using strict
367367
// mode, attempting that will be silently ignored.
368368
// However, we can still explicitly shadow the prototype's "toString" property by defining a new "toString" property on this object.
369-
Object.defineProperty(object, 'toString', { value: CallSiteToString });
369+
Object.defineProperty(object, 'toString', { value: CallSiteToString, writable: true, enumerable: true, configurable: true });
370370

371371
return object;
372372
}

0 commit comments

Comments
 (0)