Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tests; misc fixes #532

Merged
merged 9 commits into from Dec 18, 2015

torrent.createServer: throw error in browser

  • Loading branch information
feross committed Dec 17, 2015
commit 914ddd546fff3b6ced22e685a4db8ea407aa4d23
@@ -1185,7 +1185,7 @@ Torrent.prototype.load = function (streams, cb) {

Torrent.prototype.createServer = function (opts) {
var self = this
if (typeof Server !== 'function') return // browser exclude
if (typeof Server !== 'function') throw new Error('node.js-only method')
var server = new Server(self, opts)
self._servers.push(server)
return server
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.