Skip to content

Conversation

@devsnek
Copy link
Contributor

@devsnek devsnek commented Feb 21, 2017

i was just reading the source and noticed this, if there is some reason it won't work please let me know

i was just reading the source and noticed this, if there is some reason it won't work please let me know
Copy link
Member

@feross feross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hack was originally used because older versions of node didn't support the option argument like they do now. Since we don't support old versions anymore, this LGTM!

@feross
Copy link
Member

feross commented Mar 8, 2017

Actually, the tests are failed. Restarting them. Let's see if there's an issue here.

@feross
Copy link
Member

feross commented Mar 8, 2017

I figured it out -- the opts parameter is actually the fourth argument. This API isn't very friendly because it's designed for performance so the 2nd and 3rd arguments must be explicitly set to null if you don't want to provide them.

@feross feross merged commit 173161c into webtorrent:master Mar 8, 2017
@feross
Copy link
Member

feross commented Mar 8, 2017

Released as 9.0.3. Thanks!

@devsnek devsnek deleted the patch-1 branch March 8, 2017 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants