From 968e72660d802e67bb1736fc61c0fc485d33b1db Mon Sep 17 00:00:00 2001 From: Ryan Manuel Date: Sun, 27 Nov 2022 22:16:19 -0600 Subject: [PATCH] code cleanup --- scripts/binary/binary-integrity-check-source.js | 2 +- scripts/binary/build.ts | 2 +- tooling/v8-snapshot/src/blueprint/set-globals.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/binary/binary-integrity-check-source.js b/scripts/binary/binary-integrity-check-source.js index 8fd9ae3463bc..cdf02292fe42 100644 --- a/scripts/binary/binary-integrity-check-source.js +++ b/scripts/binary/binary-integrity-check-source.js @@ -17,7 +17,7 @@ function stackIntegrityCheck (options) { options.stackToMatch.forEach((functionName, index) => { if (stack[index].getFunctionName() !== functionName || !['evalmachine.', ''].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()}`) } }) } diff --git a/scripts/binary/build.ts b/scripts/binary/build.ts index 883aade00b1e..ebaa3fd12350 100644 --- a/scripts/binary/build.ts +++ b/scripts/binary/build.ts @@ -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', }, }) diff --git a/tooling/v8-snapshot/src/blueprint/set-globals.js b/tooling/v8-snapshot/src/blueprint/set-globals.js index dd557cb0290c..8450b2229912 100644 --- a/tooling/v8-snapshot/src/blueprint/set-globals.js +++ b/tooling/v8-snapshot/src/blueprint/set-globals.js @@ -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.