Context
Node's node:buffer module also exposes web-like binary object APIs: Blob, File, and object URL helpers such as resolveObjectURL.
Gap
Perry's current node:buffer work focuses on core Buffer byte behavior and does not implement this Blob/File/object URL surface.
Desired behavior
Future parity should cover at least:
new Blob([...]).size, .type, .text(), .arrayBuffer()
new File([...], name, options).name, .lastModified, inherited Blob behavior
resolveObjectURL(id) behavior for object URLs created through the compatible runtime surface
Suggested implementation notes
This likely belongs in a separate PR because it needs web Blob/File object modeling, async methods/promises, and object URL registry behavior rather than simple Buffer byte helpers.
Parity tests to add
test-parity/node-suite/buffer/blob-file/blob-basic.ts
test-parity/node-suite/buffer/blob-file/file-basic.ts
test-parity/node-suite/buffer/blob-file/object-url.ts
Validation
./run_parity_tests.sh --suite node-suite --module buffer
Context
Node's
node:buffermodule also exposes web-like binary object APIs:Blob,File, and object URL helpers such asresolveObjectURL.Gap
Perry's current
node:bufferwork focuses on coreBufferbyte behavior and does not implement this Blob/File/object URL surface.Desired behavior
Future parity should cover at least:
new Blob([...]).size,.type,.text(),.arrayBuffer()new File([...], name, options).name,.lastModified, inherited Blob behaviorresolveObjectURL(id)behavior for object URLs created through the compatible runtime surfaceSuggested implementation notes
This likely belongs in a separate PR because it needs web Blob/File object modeling, async methods/promises, and object URL registry behavior rather than simple Buffer byte helpers.
Parity tests to add
test-parity/node-suite/buffer/blob-file/blob-basic.tstest-parity/node-suite/buffer/blob-file/file-basic.tstest-parity/node-suite/buffer/blob-file/object-url.tsValidation
./run_parity_tests.sh --suite node-suite --module buffer