aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-21 14:39:46 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-21 14:57:04 -0800
commit8c3a2ff6cc46b7350ab33a97507253d87413dd2e (patch)
tree4d85acb237dd29e50ab166e0d75839cdfd2efcd4 /src/bun.js
parentb9d143c99dfd65f77499ff85c2f3bf98ba018873 (diff)
downloadbun-8c3a2ff6cc46b7350ab33a97507253d87413dd2e.tar.gz
bun-8c3a2ff6cc46b7350ab33a97507253d87413dd2e.tar.zst
bun-8c3a2ff6cc46b7350ab33a97507253d87413dd2e.zip
Fix throw
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/fs.exports.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/fs.exports.js b/src/bun.js/fs.exports.js
index 6133491ac..6f63ccb84 100644
--- a/src/bun.js/fs.exports.js
+++ b/src/bun.js/fs.exports.js
@@ -375,7 +375,7 @@ function getLazyReadStream() {
[readStreamPathFastPathSymbol];
_construct(callback) {
- super._construct(callback);
+ super._construct && super._construct(callback);
this.emit("open", this.fd);
this.emit("ready");
}