File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,14 +23,16 @@ public void letLookheadTest() {
2323 @ Test
2424 public void permissiveDestructuringTest () {
2525 String src =
26- "({ shorthand = 1 });\n "
27- + "([...rest,] = values);\n "
28- + "function f(...args,) {}\n "
29- + "function g(...[first, { nested }],) {}\n "
30- + "const arrow = (...args,) => args;\n "
31- + "const destructuringArrow = (...{ value },) => value;\n "
32- + "async (...[first, { nested }],) => first;\n "
33- + "({ method(...{ value },) {} });\n " ;
26+ """
27+ ({ shorthand = 1 });
28+ ([...rest,] = values);
29+ function f(...args,) {}
30+ function g(...[first, { nested }],) {}
31+ const arrow = (...args,) => args;
32+ const destructuringArrow = (...{ value },) => value;
33+ async (...[first, { nested }],) => first;
34+ ({ method(...{ value },) {} });
35+ """ ;
3436 new Parser (new Options (), src , 0 ).parse ();
3537 }
3638
You can’t perform that action at this time.
0 commit comments