Skip to content

Commit

Permalink
Only prepend with var with _ if accessible by eval()
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 16, 2023
1 parent cc12574 commit 168d630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serialize/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ module.exports = {
renameInjectionVarNode();
} else if (paramName === 'with') {
// `with` is always renamed
newName = transformVarName(paramName, param.isFrozenName);
newName = transformVarName(paramName, containsEval);
withVarName = newName;
// It's not possible for the `with` object to be a circular reference.
// But it can have circular properties.
Expand Down

0 comments on commit 168d630

Please sign in to comment.