Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jul 3, 2019
1 parent e95fa6b commit deb7c14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const headerMagic = Buffer.from('MDMP').readUInt32LE(0)

if (!Buffer.prototype.readBigUInt64LE) {
Buffer.prototype.readBigUInt64LE = function(offset) {
Buffer.prototype.readBigUInt64LE = function (offset) {
// ESLint doesn't support BigInt yet
// eslint-disable-next-line
return BigInt(this.readUInt32LE(offset)) + (BigInt(this.readUInt32LE(offset + 4)) << BigInt(32))
Expand Down Expand Up @@ -114,19 +114,19 @@ function debugIdFromGuidAndAge (guid, age) {
// https://chromium.googlesource.com/breakpad/breakpad/+/c46151db0ffd1a8dae914e45f1212ef427f61ed3/src/google_breakpad/common/minidump_format.h#426
function readCVRecord (buf, { rva, data_size: dataSize }) {
if (rva === 0) return
const cv_signature = buf.readUInt32LE(rva)
if (cv_signature !== 0x53445352 /* SDSR */) {
const cvSignature = buf.readUInt32LE(rva)
if (cvSignature !== 0x53445352 /* SDSR */) {
const age = buf.readUInt32LE(rva + 4 + 16)
const guid = readGUID(buf.subarray(rva + 4, rva + 4 + 16))
return {
cv_signature,
cv_signature: cvSignature,
guid,
age,
pdb_file_name: buf.subarray(rva + 4 + 16 + 4, rva + dataSize - 1).toString('utf8'),
debug_file_id: debugIdFromGuidAndAge(guid, age)
}
} else {
return {cv_signature}
return {cv_signature: cvSignature}
}
}

Expand All @@ -141,7 +141,7 @@ function readString (buf, rva) {
// MDStreamType
// https://chromium.googlesource.com/breakpad/breakpad/+/refs/heads/master/src/google_breakpad/common/minidump_format.h#310
const streamTypes = {
MD_MODULE_LIST_STREAM: 4,
MD_MODULE_LIST_STREAM: 4
}

const streamTypeProcessors = {
Expand Down

0 comments on commit deb7c14

Please sign in to comment.