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:
authorThaUnknown <6506529+ThaUnknown@users.noreply.github.com>2022-06-26 19:46:54 +0300
committerThaUnknown <6506529+ThaUnknown@users.noreply.github.com>2022-06-26 19:46:54 +0300
commit3a8f901a48503a5c767b6174904e2c062d403a6a (patch)
treee4960796a1b69342693f6ba2a196d5bae19f9251
parent8b97ee8cc18b05e0d20135ea8f1651e97bb65c6f (diff)
fix: null opts causing error
-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