mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibJS: Allow binding patterns as for in/of targets
This commit is contained in:
parent
bd9f28bba6
commit
a6fe27423a
Notes:
sideshowbarker
2024-07-18 11:07:37 +09:00
Author: https://github.com/alimpfard
Commit: a6fe27423a
Pull-request: https://github.com/SerenityOS/serenity/pull/8384
3 changed files with 9 additions and 1 deletions
|
@ -49,3 +49,7 @@ test("use already-declared variable", () => {
|
|||
for (property in "abc");
|
||||
expect(property).toBe("2");
|
||||
});
|
||||
|
||||
test("allow binding patterns", () => {
|
||||
expect(`for (let [a, b] in foo) {}`).toEval();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue