Skip to content

Commit 7c05556

Browse files
committed
fix(captureStackTrace): make stack property configurable/writable
Fixes #20
1 parent 7aab20f commit 7c05556

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ if (captureStackTrace === undefined) {
2121

2222
// Replace property with value for faster future accesses.
2323
defineProperty(this, 'stack', {
24-
value: stack
24+
configurable: true,
25+
value: stack,
26+
writable: true
2527
})
2628

2729
return stack

0 commit comments

Comments
 (0)