mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:38:12 +00:00
LibJS: Allow binding patterns as for in/of targets
This commit is contained in:
parent
bd9f28bba6
commit
a6fe27423a
3 changed files with 9 additions and 1 deletions
|
@ -98,3 +98,7 @@ describe("errors", () => {
|
|||
}).toThrowWithMessage(TypeError, "[object Object] is not iterable");
|
||||
});
|
||||
});
|
||||
|
||||
test("allow binding patterns", () => {
|
||||
expect(`for (let [a, b] of foo) {}`).toEval();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue