fix corner case in side_effects (#5118)
This commit is contained in:
@@ -568,6 +568,20 @@ retain_empty_iife: {
|
||||
node_version: ">=6"
|
||||
}
|
||||
|
||||
drop_new_function: {
|
||||
options = {
|
||||
side_effects: true,
|
||||
}
|
||||
input: {
|
||||
new function(a = console.log("PASS")) {}();
|
||||
}
|
||||
expect: {
|
||||
void console.log("PASS");
|
||||
}
|
||||
expect_stdout: "PASS"
|
||||
node_version: ">=6"
|
||||
}
|
||||
|
||||
retain_fargs: {
|
||||
options = {
|
||||
unused: true,
|
||||
|
||||
Reference in New Issue
Block a user