Update the Babel plugin to remove empty static blocks#18562
Conversation
Snuffleupagus
left a comment
There was a problem hiding this comment.
r=me, with the comment addressed and passing tests; thank you!
This commit updates the Babel plugin to: - apply the same flattening logic that we already have for blocks, to flatten blocks nested inside class static blocks - remove class static blocks when, after flattening all the blocks they contain, they are empty. Before this commit, the transform output was the same as the input.
7513fb7 to
995f5a2
Compare
| @@ -0,0 +1,8 @@ | |||
| class A { | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
| @@ -0,0 +1,20 @@ | |||
| class A { | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
|
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/e38aa397a12e696/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/ae26256d9f6719a/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/ae26256d9f6719a/output.txt Total script time: 30.15 mins
Image differences available at: http://54.241.84.105:8877/ae26256d9f6719a/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/e38aa397a12e696/output.txt Total script time: 45.31 mins
Image differences available at: http://54.193.163.58:8877/e38aa397a12e696/reftest-analyzer.html#web=eq.log |
Closes #18559