Files
sausage/userland/qjs/source/tests/bug493.js
T
surma d44f1d9677 Build separate native and WASI pipelines with shared multicall names
Checkpoint before integration and package validation.

Assisted-by: SurmAgent:unknown [read] [edit] [bash]
2026-11-12 09:36:27 +00:00

11 lines
221 B
JavaScript

// Iterator.prototype.map must not leak the original item
function* gen() {
for (let i = 0; i < 5; i++) {
yield { index: i };
}
}
const mapped = gen().map(x => x.index * 2);
for (const val of mapped) {}