1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:24:57 +00:00

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
3 changed files with 7 additions and 1 deletions

View file

@ -70,6 +70,11 @@ describe("syntax errors", () => {
class A {
set foo(bar, baz) {
}
}`).not.toEval();
expect(`
class A {
set foo(...bar) {
}
}`).not.toEval();
});