mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibJS: Disallow multiple parameters in paren-less arrow function
Fixes #2323.
This commit is contained in:
parent
84b508befa
commit
27913154ea
2 changed files with 6 additions and 1 deletions
|
@ -55,6 +55,11 @@ try {
|
|||
})(10);
|
||||
assert(half === 5);
|
||||
|
||||
var foo, bar;
|
||||
foo = bar, baz => {};
|
||||
assert(foo === undefined);
|
||||
assert(bar === undefined);
|
||||
|
||||
console.log("PASS");
|
||||
} catch {
|
||||
console.log("FAIL");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue