mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-28 06:53:42 +08:00
`in` on a typed array, Buffer or DataView held as `any` or `unknown` answered false for every key: indices, `length`, prototype methods and Object.prototype names. On a typed array, a canonical numeric key (one that ToString(ToNumber(key)) reproduces, or "-0") now answers by bounds: an integral index, not -0, below the length, so "1.5", "-0", "NaN" and "Infinity" answer false. Other keys answer true for members of %TypedArray%.prototype, Buffer.prototype on a Buffer, the constructors' BYTES_PER_ELEMENT and Object.prototype. A DataView has no indexed elements and answers DataView.prototype's members and Object.prototype's.