From 8b2cfd45fa8dd4f01d9535ad43bc37ce4953e78d Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 15 Jun 2020 01:29:01 +0800 Subject: fix corner case in `rename` (#4000) fixes #3999 --- lib/scope.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/scope.js') diff --git a/lib/scope.js b/lib/scope.js index 2f49df76..66314766 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -543,11 +543,8 @@ AST_Toplevel.DEFMETHOD("expand_names", function(options) { var redef = def.redefined(); var name = redef ? redef.rename || redef.name : next_name(); def.rename = name; - def.orig.forEach(function(sym) { - sym.name = name; - }); - def.references.forEach(function(sym) { - sym.name = name; + def.orig.concat(def.references).forEach(function(sym) { + if (sym.definition() === def) sym.name = name; }); } }); -- cgit v1.2.3 type='submit' value='switch'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/avahi.scm
AgeCommit message (Expand)Author
2020-10-13gnu: libcap: Make 'libcap/next' the default libcap....Marius Bakke
2020-03-18gnu: avahi: Update to 0.8....Marius Bakke
2020-03-18gnu: avahi: Do not build the static libraries....Marius Bakke
2020-01-21Merge branch 'staging' into core-updatesMarius Bakke
2020-01-19gnu: Use HTTPS for avahi.org everywhere....Tobias Geerinckx-Rice
2019-12-05gnu: avahi: Incorporate grafted changes....Marius Bakke
2019-10-23gnu: avahi: Don't use package/inherit....Tobias Geerinckx-Rice
2019-10-23gnu: avahi: Fix CVE-2018-1000845 and duplicate CVE-2017-6519....Tobias Geerinckx-Rice