@@ -39,7 +39,7 @@ const getFingerprint = function({ info }) {
3939// We do not serialize `info.eventName` since this is already `eventName-wise`
4040// Key order matters since fingerprint might be truncated: we serialize short
4141// and non-dynamic values first.
42- const INFO_PROPS = [ 'nextRejected' , 'rejected' , 'error' , ' nextValue', 'value' ]
42+ const INFO_PROPS = [ 'nextRejected' , 'rejected' , 'nextValue' , 'value' ]
4343
4444const FINGERPRINT_MAX_LENGTH = 1e4
4545
@@ -56,7 +56,7 @@ const serializeEntry = function({ info, propName }) {
5656
5757const serializeValue = function ( { value } ) {
5858 if ( value instanceof Error ) {
59- return serializeError ( { error : value } )
59+ return serializeError ( value )
6060 }
6161
6262 return stableSerialize ( value )
@@ -66,7 +66,7 @@ const serializeValue = function({ value }) {
6666// timestamps. This means errors are only `error.name` + `error.stack`, which
6767// should be a good fingerprint.
6868// Also we only keep first 10 callsites in case of infinitely recursive stack.
69- const serializeError = function ( { error : { name, stack } } ) {
69+ const serializeError = function ( { name, stack } ) {
7070 const stackA = filterErrorStack ( { stack } )
7171 return `${ name } \n${ stackA } `
7272}
0 commit comments