Skip to content

Commit 2a35c09

Browse files
committed
Also take the message into account, to deal with errors without stack trace
1 parent 1bbe4bf commit 2a35c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/default/DuplicateCheckerPlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class DuplicateCheckerPlugin implements IEventPlugin {
2929

3030
while (error) {
3131
if (error.stack_trace && error.stack_trace.length) {
32+
hashCode += (hashCode * 397) ^ Utils.getHashCode(error.message);
3233
hashCode += (hashCode * 397) ^ Utils.getHashCode(JSON.stringify(error.stack_trace));
3334
}
3435
error = error.inner;

0 commit comments

Comments
 (0)