Skip to content

Commit

Permalink
Update scripts/binary/binary-integrity-check-source.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthemanuel committed Dec 2, 2022
1 parent 4187ff6 commit ab63313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/binary/binary-integrity-check-source.js
Expand Up @@ -20,7 +20,7 @@ const stackIntegrityCheck = function stackIntegrityCheck (options) {
const stack = tempError.stack.filter((frame) => !frame.getFileName().startsWith('node:internal') && !frame.getFileName().startsWith('node:electron'))

OrigError.prepareStackTrace = originalStackTrace
Error.stackTraceLimit = originalStackTraceLimit
OrigError.stackTraceLimit = originalStackTraceLimit

if (stack.length !== options.stackToMatch.length) {
throw new Error(`Integrity check failed with expected stack length ${options.stackToMatch.length} but got ${stack.length}`)
Expand Down

0 comments on commit ab63313

Please sign in to comment.