varx;functionfoo(){letx=0;(function(){var_x=1;console.log(x);// Prints 1, should print 0})();}The rename of the 'let' does not account for the _x declared in the nested function. Consequently, it chooses _x as the rename, but now the inner _x shadows it.
The rename of the 'let' does not account for the _x declared in the nested function. Consequently, it chooses _x as the rename, but now the inner _x shadows it.