mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibJS: Rest parameter in setter functions is a syntax error
This commit is contained in:
committed by
Andreas Kling
parent
6331d45a6f
commit
1e86379327
@@ -70,6 +70,11 @@ describe("syntax errors", () => {
|
||||
class A {
|
||||
set foo(bar, baz) {
|
||||
}
|
||||
}`).not.toEval();
|
||||
expect(`
|
||||
class A {
|
||||
set foo(...bar) {
|
||||
}
|
||||
}`).not.toEval();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user