Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mishoo/UglifyJS
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: db50b13a3e71b50017c9e5f9cf90c83346f6d98d
Choose a base ref
..
head repository: mishoo/UglifyJS
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5ab2a21b02a71d5ece07758efa91db36bb6c1e94
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scope.js
4 changes: 2 additions & 2 deletions lib/scope.js
Original file line number Diff line number Diff line change
@@ -566,8 +566,8 @@ function next_mangled_name(def, options) {
} while (scope = scope.parent_scope);
});
var comment = def.orig[0].start.comments_after[0]?.value;
var preferredName = comment && /[@#]mangleTo:(.*)/.exec(comment);
var name = preferredName && preferredName[1];
var preferred_name = comment && /[@#]mangleTo:(.*)/.exec(comment);
var name = preferred_name && preferred_name[1];
if (name && !names.has(name)) {
in_use.set(name, true);
return name;