add another export default anonymous async function test
This commit is contained in:
parent
4c1baf88e2
commit
f3332f591e
|
|
@ -425,5 +425,22 @@ export_default_anonymous_generator_not_call: {
|
||||||
input: {
|
input: {
|
||||||
export default function*(){}(foo);
|
export default function*(){}(foo);
|
||||||
}
|
}
|
||||||
|
// agrees with `acorn` and `babylon 7`
|
||||||
expect_exact: "export default function*(){};foo;"
|
expect_exact: "export default function*(){};foo;"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export_default_anonymous_async_function_not_call: {
|
||||||
|
options = {
|
||||||
|
reduce_vars: true,
|
||||||
|
toplevel: true,
|
||||||
|
unused: true,
|
||||||
|
}
|
||||||
|
mangle = {
|
||||||
|
toplevel: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
export default async function(){}(foo);
|
||||||
|
}
|
||||||
|
// agrees with `acorn` and `babylon 7`
|
||||||
|
expect_exact: "export default async function(){};foo;"
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user