Skip to content

Commit

Permalink
add test after closing #508
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode committed Dec 1, 2019
1 parent 846b8d2 commit b3a74da
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions test/compress/block-scope.js
Expand Up @@ -262,3 +262,36 @@ issue_334: {
}
expect_stdout: "Hello World!";
}

issue_508: {
options = {
defaults: true,
toplevel: true,
pure_getters: true
}
input : {
const foo = () => {
let a;
{
let b = [];
{
console.log();
}
a = b;

{
let c = a;
let b = 123456;
console.log(b);
c.push(b);
}
}
};

foo();
}
expect_stdout: [
"",
"123456"
]
}

0 comments on commit b3a74da

Please sign in to comment.