Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/file-stream.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js
index cb6eb63..c344913 100644
--- a/lib/file-stream.js
+++ b/lib/file-stream.js
@@ -13,7 +13,7 @@ const debug = debugFactory('webtorrent:file-stream')
*/
class FileStream extends Readable {
constructor (file, opts) {
- super(opts)
+ super(opts ?? {})
this._torrent = file._torrent