LibJS: Rest parameter in setter functions is a syntax error

This commit is contained in:
Linus Groh 2020-10-20 18:43:58 +01:00 committed by Andreas Kling
parent 6331d45a6f
commit 1e86379327
Notes: sideshowbarker 2024-07-19 01:49:38 +09:00
3 changed files with 7 additions and 1 deletions

View file

@ -151,6 +151,7 @@ describe("errors", () => {
expect("({ get ...[foo] })").not.toEval();
expect("({ get foo(bar) {} })").not.toEval();
expect("({ set foo() {} })").not.toEval();
expect("({ set foo(...bar) {} })").not.toEval();
expect("({ set foo(bar, baz) {} })").not.toEval();
expect("({ ...foo: bar })").not.toEval();
});