4
4
const headerMagic = Buffer . from ( 'MDMP' ) . readUInt32LE ( 0 )
5
5
6
6
if ( ! Buffer . prototype . readBigUInt64LE ) {
7
- Buffer . prototype . readBigUInt64LE = function ( offset ) {
7
+ Buffer . prototype . readBigUInt64LE = function ( offset ) {
8
8
// ESLint doesn't support BigInt yet
9
9
// eslint-disable-next-line
10
10
return BigInt ( this . readUInt32LE ( offset ) ) + ( BigInt ( this . readUInt32LE ( offset + 4 ) ) << BigInt ( 32 ) )
@@ -114,19 +114,19 @@ function debugIdFromGuidAndAge (guid, age) {
114
114
// https://chromium.googlesource.com/breakpad/breakpad/+/c46151db0ffd1a8dae914e45f1212ef427f61ed3/src/google_breakpad/common/minidump_format.h#426
115
115
function readCVRecord ( buf , { rva, data_size : dataSize } ) {
116
116
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 */ ) {
119
119
const age = buf . readUInt32LE ( rva + 4 + 16 )
120
120
const guid = readGUID ( buf . subarray ( rva + 4 , rva + 4 + 16 ) )
121
121
return {
122
- cv_signature,
122
+ cv_signature : cvSignature ,
123
123
guid,
124
124
age,
125
125
pdb_file_name : buf . subarray ( rva + 4 + 16 + 4 , rva + dataSize - 1 ) . toString ( 'utf8' ) ,
126
126
debug_file_id : debugIdFromGuidAndAge ( guid , age )
127
127
}
128
128
} else {
129
- return { cv_signature}
129
+ return { cv_signature : cvSignature }
130
130
}
131
131
}
132
132
@@ -141,7 +141,7 @@ function readString (buf, rva) {
141
141
// MDStreamType
142
142
// https://chromium.googlesource.com/breakpad/breakpad/+/refs/heads/master/src/google_breakpad/common/minidump_format.h#310
143
143
const streamTypes = {
144
- MD_MODULE_LIST_STREAM : 4 ,
144
+ MD_MODULE_LIST_STREAM : 4
145
145
}
146
146
147
147
const streamTypeProcessors = {
0 commit comments