Skip to content

Commit 61e798c

Browse files
author
Martin Vokřínek
committed
makes imtExceptionHash configurable
1 parent f1fa79b commit 61e798c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/error.ts

+4
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ Object.defineProperty(Error.prototype, 'toJSON', {
480480
*/
481481
Object.defineProperty(Error.prototype, 'imtExceptionHash', {
482482
enumerable: true,
483+
/**
484+
* imt-bluperint does some crazy things and the proto get's loaded multiple times. Without this, it fails on redefinition of the same property
485+
*/
486+
configurable: true,
483487
set(this: Error, newValue: string) {
484488
this.hash = newValue;
485489
},

0 commit comments

Comments
 (0)