44const headerMagic = Buffer . from ( 'MDMP' ) . readUInt32LE ( 0 )
55
66if ( ! Buffer . prototype . readBigUInt64LE ) {
7- Buffer . prototype . readBigUInt64LE = function ( offset ) {
7+ Buffer . prototype . readBigUInt64LE = function ( offset ) {
88 // ESLint doesn't support BigInt yet
99 // eslint-disable-next-line
1010 return BigInt ( this . readUInt32LE ( offset ) ) + ( BigInt ( this . readUInt32LE ( offset + 4 ) ) << BigInt ( 32 ) )
@@ -114,19 +114,19 @@ function debugIdFromGuidAndAge (guid, age) {
114114// https://chromium.googlesource.com/breakpad/breakpad/+/c46151db0ffd1a8dae914e45f1212ef427f61ed3/src/google_breakpad/common/minidump_format.h#426
115115function readCVRecord ( buf , { rva, data_size : dataSize } ) {
116116 if ( rva === 0 ) return
117- const cv_signature = buf . readUInt32LE ( rva )
118- if ( cv_signature !== 0x53445352 /* SDSR */ ) {
117+ const cvSignature = buf . readUInt32LE ( rva )
118+ if ( cvSignature !== 0x53445352 /* SDSR */ ) {
119119 const age = buf . readUInt32LE ( rva + 4 + 16 )
120120 const guid = readGUID ( buf . subarray ( rva + 4 , rva + 4 + 16 ) )
121121 return {
122- cv_signature,
122+ cv_signature : cvSignature ,
123123 guid,
124124 age,
125125 pdb_file_name : buf . subarray ( rva + 4 + 16 + 4 , rva + dataSize - 1 ) . toString ( 'utf8' ) ,
126126 debug_file_id : debugIdFromGuidAndAge ( guid , age )
127127 }
128128 } else {
129- return { cv_signature}
129+ return { cv_signature : cvSignature }
130130 }
131131}
132132
@@ -141,7 +141,7 @@ function readString (buf, rva) {
141141// MDStreamType
142142// https://chromium.googlesource.com/breakpad/breakpad/+/refs/heads/master/src/google_breakpad/common/minidump_format.h#310
143143const streamTypes = {
144- MD_MODULE_LIST_STREAM : 4 ,
144+ MD_MODULE_LIST_STREAM : 4
145145}
146146
147147const streamTypeProcessors = {
0 commit comments