Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthemanuel committed Nov 28, 2022
1 parent 25b870c commit 968e726
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/binary/binary-integrity-check-source.js
Expand Up @@ -17,7 +17,7 @@ function stackIntegrityCheck (options) {

options.stackToMatch.forEach((functionName, index) => {
if (stack[index].getFunctionName() !== functionName || !['evalmachine.<anonymous>', '<embedded>'].includes(stack[index].getFileName())) {
throw new Error(`Integrity check failed at index ${ index } with function name ${ functionName } and expected function name ${stack[index].getFunctionName()} from ${stack[index].getFileName()}`)
throw new Error(`Integrity check failed at index ${ index } with function name ${stack[index].getFunctionName()} and expected function name ${functionName} from ${stack[index].getFileName()}`)
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/binary/build.ts
Expand Up @@ -263,7 +263,7 @@ require('./packages/server/index.js')
await execa('electron-builder', args, {
stdio: 'inherit',
env: {
NODE_OPTIONS: '--max_old_space_size=16384',
NODE_OPTIONS: '--max_old_space_size=32768',
DEBUG: 'cypress:snapgen:info',
},
})
Expand Down
2 changes: 1 addition & 1 deletion tooling/v8-snapshot/src/blueprint/set-globals.js
Expand Up @@ -17,7 +17,7 @@ function setGlobals (
) {
if (typeof stackIntegrityCheck === 'function') {
// eslint-disable-next-line no-undef
stackIntegrityCheck({ stackToMatch: ['setGlobals', 'snapshotRequire', 'runWithSnapshot', 'hookRequire', 'run'] })
stackIntegrityCheck({ stackToMatch: ['value', 'snapshotRequire', 'runWithSnapshot', 'hookRequire', 'run'] })
}

// Populate the global function trampoline with the real global functions defined on newGlobal.
Expand Down

0 comments on commit 968e726

Please sign in to comment.