- From: Emelia Smith <notifications@github.com>
- Date: Fri, 31 Aug 2018 01:13:13 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 31 August 2018 08:13:35 UTC
In certain implementations of whatwg streams, I've come across them not implementing `toString` or `Symbol.toStringTag` on the prototype meaning that if you're trying to find out if you've been given a stream (or another data type) then you have to rely on duck typing. In the following, I'd expect to see `"[object ReadableStream]"` returned: ```js let r = new ReadableStream() // ReadableStream {} r.toString() // "[object Object]" > Object.prototype.toString.call(r) // "[object Object]" ``` In Safari these all return as I'd expect, in Chrome and Firefox they return `"[object Object]"`. The spec doesn't actually specify the toString behavior. -- 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/streams/issues/952
Received on Friday, 31 August 2018 08:13:35 UTC