mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
12 lines
248 B
JavaScript
12 lines
248 B
JavaScript
// For-of RHS must be AssignmentExpression, not a comma expression.
|
|
function for_of_simple_rhs() {
|
|
var x;
|
|
for (x of [1, 2, 3]) {}
|
|
}
|
|
|
|
// For-in RHS allows comma expressions.
|
|
function for_in_comma_rhs() {
|
|
var x;
|
|
for (x in 0, {}) {}
|
|
}
|