Skip to content

util: improve typed array formatting

Pretty-print typed arrays like regular arrays. Speeds up formatting by almost 300% because it no longer stringifies the array indices.

Pretty-print ArrayBuffer and DataView as well by including byteLength, byteOffset and buffer properties in the stringified representation.

Taggging this semver-major for now. Maybe overcautious?

CI: https://ci.nodejs.org/job/node-test-pull-request/711/

Merge request reports

Loading