- Use AST_Destructuring for lhf assignment patterns - Use AST_DefaultAssign for default assignments - Add more checks for lhs expressions - Add lots of testing - Cleanup ast (e.g. remove default property) - Fix #1402 based on a patch from @kzc - Refine spread allowance in array destructring pattern - Add destructuring AST tree checker
13 lines
261 B
JavaScript
13 lines
261 B
JavaScript
catch_destructuring_with_sequence: {
|
|
beautify = {
|
|
ecma: 6
|
|
}
|
|
input: {
|
|
try {
|
|
throw {};
|
|
} catch ({xCover = (0, function() {})} ) {
|
|
}
|
|
}
|
|
expect_exact: "try{throw{}}catch({xCover=(0,function(){})}){}"
|
|
}
|