Browse Source

fix deshadowing false positive

contingency-plan
Rich-Harris 10 years ago
parent
commit
e56d17035d
  1. 2
      src/Statement.js

2
src/Statement.js

@ -313,7 +313,7 @@ export default class Statement {
});
deshadowList.forEach( name => {
if ( ~scope.declarations[ name ] ) { // TODO is this right? no indexOf?
if ( scope.declarations[ name ] ) {
newNames[ name ] = name + '$$'; // TODO better mechanism
hasReplacements = true;
}

Loading…
Cancel
Save