caolan / highland

High-level streams library for Node.js and the browser

Home Page:https://caolan.github.io/highland

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_.of() in 3.0 doesn't respect `use`.

vqvu opened this issue · comments

There's a new feature in 3.0 (not yet documented) called use that lets you extend the stream prototype. To allow top-level functions to create streams using the correct prototype, we bind the top-level object to the function's this reference.

Top-level functions must use this when constructing streams from scratch in order to be compliant. of doesn't do that.