mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* fix: babel-traverse constant flag in bindings flag bindings in loops as not constant. Fixes: #13760 * Only mark `var`s directly inside loops * Fix CI error Co-authored-by: Stephane Rufer <[email protected]>
12 lines
166 B
JavaScript
12 lines
166 B
JavaScript
function render() {
|
|
const nodes = [];
|
|
|
|
for (let i = 0; i < 5; i++) {
|
|
const o = "foo";
|
|
const n = i;
|
|
nodes.push(<div>{n}</div>);
|
|
}
|
|
|
|
return nodes;
|
|
}
|