[whatwg/streams] always check if methods are callable first (#580)

InvokeOrNoop invokes [Call](https://tc39.github.io/ecma262/#sec-call), which only takes actual functions, not anything that has `.apply` on it.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/580

-- Commit Summary --

  * always check if methods are callable first

-- File Changes --

    M reference-implementation/lib/helpers.js (9)
    M reference-implementation/test/bad-underlying-sinks.js (18)

-- Patch Links --

https://github.com/whatwg/streams/pull/580.patch
https://github.com/whatwg/streams/pull/580.diff

-- 
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/pull/580

Received on Sunday, 30 October 2016 15:14:10 UTC