Skip to content

Commit 948864e

Browse files
authored
Merge pull request #505 from darthtrevino/488-bluebird-rejections-hang
Add 'configurable: true' to GraphQLError stack property
2 parents 63b9f15 + c6d2b39 commit 948864e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/error/GraphQLError.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,16 @@ export function GraphQLError( // eslint-disable-line no-redeclare
8181
if (originalError && originalError.stack) {
8282
Object.defineProperty(this, 'stack', {
8383
value: originalError.stack,
84-
writable: true
84+
writable: true,
85+
configurable: true
8586
});
8687
} else if (Error.captureStackTrace) {
8788
Error.captureStackTrace(this, GraphQLError);
8889
} else {
8990
Object.defineProperty(this, 'stack', {
9091
value: Error().stack,
91-
writable: true
92+
writable: true,
93+
configurable: true
9294
});
9395
}
9496

0 commit comments

Comments
 (0)