Skip to content

Commit 81e6995

Browse files
committed
crypto: fixes performance regression
e559842 made writable/readable computed with a legacy mode if the properties are written to. LazyTransform still unecessarily wrote to these properties causing a performance regression. Fixes: #31739
1 parent 8d8f7c6 commit 81e6995

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/internal/streams/lazy_transform.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ module.exports = LazyTransform;
1919

2020
function LazyTransform(options) {
2121
this._options = options;
22-
this.writable = true;
23-
this.readable = true;
2422
}
2523
ObjectSetPrototypeOf(LazyTransform.prototype, stream.Transform.prototype);
2624
ObjectSetPrototypeOf(LazyTransform, stream.Transform);

0 commit comments

Comments
 (0)