From 2069161a76aa0729d1ce87b48cfcac9c6f2704cc Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Wed, 30 Aug 2023 13:35:19 +0100 Subject: [PATCH] `with` statements WIP 3 --- lib/serialize/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serialize/blocks.js b/lib/serialize/blocks.js index 7791a2dd..f7023c5c 100644 --- a/lib/serialize/blocks.js +++ b/lib/serialize/blocks.js @@ -633,7 +633,7 @@ module.exports = { // Rename injection node renameInjectionVarNode(); } else if (!containsEval || paramName === 'with') { // `with` param is always renamed - newName = transformVarName(paramName); + newName = transformVarName(paramName, containsEval); if (newName !== paramName) { // Rename all nodes for (const varNode of localVars[paramName]) {