mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
This adds a test case where the for-of iterable is a sequence expression containing a conditional expression. The C++ pipeline creates loop blocks before evaluating the iterable, giving them lower block numbers, while the Rust pipeline evaluates the iterable first.
7 lines
113 B
JavaScript
7 lines
113 B
JavaScript
function f(o, i) {
|
|
for (let [r, n] of (o ? o.x : i, Object.entries({}))) {
|
|
r;
|
|
}
|
|
}
|
|
f(null, null);
|