mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
LibJS: Rest parameter in setter functions is a syntax error
This commit is contained in:
committed by
Andreas Kling
parent
6331d45a6f
commit
1e86379327
Notes:
sideshowbarker
2024-07-19 01:49:38 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/1e863793270 Pull-request: https://github.com/SerenityOS/serenity/pull/3809
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user