improve fix for #4325 (#4649)

This commit is contained in:
Alex Lam S.L
2021-02-13 18:24:57 +00:00
committed by GitHub
parent 766742e1d3
commit a6bb66931b
7 changed files with 21 additions and 22 deletions

View File

@@ -673,27 +673,21 @@ issue_4575: {
unused: true,
}
input: {
A = "PASS";
(function() {
var a = 0, b = a;
var c = function a(...b) {
A;
var d = A;
console.log(d, b.length);
(function(a) {
var b = a;
var c = function a(...d) {
console.log(d.length);
}();
})();
}
expect: {
A = "PASS";
(function() {
(function(b) {
A;
var d = A;
console.log(d, b.length);
})([]);
(function(a) {
(function a(...d) {
console.log(d.length);
})();
})();
}
expect_stdout: "PASS 0"
expect_stdout: "0"
node_version: ">=6"
}