You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stream: use primordials for prototype method access in stream/iter
Replace direct prototype property access and method calls with
primordial-safe equivalents throughout the stream/iter implementation.
- `.byteLength`/`.byteOffset`/`.buffer` on typed arrays replaced with
`TypedArrayPrototypeGetByteLength`/`GetByteOffset`/`GetBuffer`
- `.buffer.byteLength` replaced with `ArrayBufferPrototypeGetByteLength`
- `.buffer.slice()` replaced with `ArrayBufferPrototypeSlice`
- `.call()` replaced with `FunctionPrototypeCall`
- `.toString()` replaced with `FunctionPrototypeCall`
- Protocol method calls replaced with `FunctionPrototypeCall`
- `.map()` replaced with `ArrayPrototypeMap`
- `.startsWith()` replaced with `StringPrototypeStartsWith`
- `.slice()` on `Buffer` replaced with `TypedArrayPrototypeSlice`
- `.shift()` on plain array replaced with `ArrayPrototypeShift`
- `.fill()` on typed arrays replaced with `TypedArrayPrototypeFill`
- `.then()` replaced with `PromisePrototypeThen`
- `.catch()` replaced with `PromisePrototypeThen(…, undefined, handler)`
- Added `__proto__`: null to all iterator result objects resolved
through promises (`push.js`, `broadcast.js`, `share.js`, `consumers.js`)
0 commit comments