mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 18:11:52 +00:00
LibJS: Rest parameter in setter functions is a syntax error
This commit is contained in:
parent
6331d45a6f
commit
1e86379327
Notes:
sideshowbarker
2024-07-19 01:49:38 +09:00
Author: https://github.com/linusg
Commit: 1e86379327
Pull-request: https://github.com/SerenityOS/serenity/pull/3809
3 changed files with 7 additions and 1 deletions
|
@ -70,6 +70,11 @@ describe("syntax errors", () => {
|
|||
class A {
|
||||
set foo(bar, baz) {
|
||||
}
|
||||
}`).not.toEval();
|
||||
expect(`
|
||||
class A {
|
||||
set foo(...bar) {
|
||||
}
|
||||
}`).not.toEval();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue