Files
vectorcraft/crates
dotCooCoo f9d7fd23b4 JavaScript: a walked string counts its flattened copy against the heap
In a realm made without the ECMAScript 2015 built-ins and later switched
to ECMAScript 2015 code, `for`-`of`, spread and array patterns walk a
string by code point. The walk flattened a concatenated string before any
limit was checked; it now flattens through the counted helper that
`String.prototype[Symbol.iterator]` uses, so the run ends with the heap
limit before the copy is made. The rope test also covers array patterns
and `for`-`of`, in both kinds of realm.

The crate docs now say that such a realm walks arrays and `arguments`
objects by index and strings by code point.
2026-11-22 06:41:10 -08:00
..
2026-11-19 15:24:38 +07:00