rework test
This commit is contained in:
parent
edd1479d51
commit
4bba3f843f
|
|
@ -36,9 +36,10 @@ compress_new_function_with_destruct: {
|
||||||
compress_new_function_with_destruct_arrows: {
|
compress_new_function_with_destruct_arrows: {
|
||||||
options = {
|
options = {
|
||||||
arrows: true,
|
arrows: true,
|
||||||
|
unsafe_arrows: true,
|
||||||
unsafe: true,
|
unsafe: true,
|
||||||
unsafe_Func: true,
|
unsafe_Func: true,
|
||||||
ecma: 6
|
ecma: 6,
|
||||||
}
|
}
|
||||||
beautify = {
|
beautify = {
|
||||||
ecma: 6
|
ecma: 6
|
||||||
|
|
@ -49,8 +50,8 @@ compress_new_function_with_destruct_arrows: {
|
||||||
new Function("[[aa]], [{bb}]", 'return aa;');
|
new Function("[[aa]], [{bb}]", 'return aa;');
|
||||||
}
|
}
|
||||||
expect: {
|
expect: {
|
||||||
Function("n,[r]", "return n");
|
Function("n,[a]", "return n");
|
||||||
Function("n,{bb:b}", "return n");
|
Function("b,{bb:n}", "return b");
|
||||||
Function("[[n]],[{bb:b}]", "return n");
|
Function("[[b]],[{bb:n}]", "return b");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user