summaryrefslogtreecommitdiff
path: root/lib/_stream_passthrough.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_stream_passthrough.js')
-rw-r--r--lib/_stream_passthrough.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/_stream_passthrough.js b/lib/_stream_passthrough.js
index 205a14b65f..279df5ac2d 100644
--- a/lib/_stream_passthrough.js
+++ b/lib/_stream_passthrough.js
@@ -25,13 +25,15 @@
'use strict';
-const { Object } = primordials;
+const {
+ ObjectSetPrototypeOf,
+} = primordials;
module.exports = PassThrough;
const Transform = require('_stream_transform');
-Object.setPrototypeOf(PassThrough.prototype, Transform.prototype);
-Object.setPrototypeOf(PassThrough, Transform);
+ObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype);
+ObjectSetPrototypeOf(PassThrough, Transform);
function PassThrough(options) {
if (!(this instanceof PassThrough))