- Version: v14.0.0-pre
- Platform: OSX
- Subsystem: util
What steps will reproduce the bug?
newTextDecoder().decode(newSharedArrayBuffer(0));
How often does it reproduce? Is there a required condition?
Always reproduces.
What is the expected behavior?
Per https://encoding.spec.whatwg.org/#dom-textdecoder-decode it should accept SharedArrayBuffers and act like
newTextDecoder().decode(newArrayBuffer(0));
What do you see instead?
TypeError [ERR_INVALID_ARG_TYPE]: The "input" argument must be an instance of ArrayBuffer or ArrayBufferView. Received an instance of SharedArrayBuffer
Additional information
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always reproduces.
What is the expected behavior?
Per https://encoding.spec.whatwg.org/#dom-textdecoder-decode it should accept
SharedArrayBuffers and act likeWhat do you see instead?
Additional information