- From: Ingvar Stepanyan <notifications@github.com>
- Date: Fri, 28 Feb 2020 09:46:10 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 28 February 2020 17:46:22 UTC
Currently you can construct a `Response` from an `ArrayBuffer` and it will correctly copy the contents. However, if you try to construct a `Response` from a `SharedArrayBuffer`, it seems to stringify the object, resulting in `[object SharedArrayBuffer]`, and then uses that string as a source data. https://twitter.com/RReverser/status/1233446149291417605 This behaviour can be quite surprising and it seems that the constructor should either clone data from `SharedArrayBuffer` upon creation or explicitly reject it with a `TypeError`. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1004
Received on Friday, 28 February 2020 17:46:22 UTC