diff options
Diffstat (limited to 'test/parallel/test-stream-duplex-destroy.js')
-rw-r--r-- | test/parallel/test-stream-duplex-destroy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-stream-duplex-destroy.js b/test/parallel/test-stream-duplex-destroy.js index 518998fd18..1108413e72 100644 --- a/test/parallel/test-stream-duplex-destroy.js +++ b/test/parallel/test-stream-duplex-destroy.js @@ -3,7 +3,6 @@ const common = require('../common'); const { Duplex } = require('stream'); const assert = require('assert'); -const { inherits } = require('util'); { const duplex = new Duplex({ @@ -190,7 +189,8 @@ const { inherits } = require('util'); Duplex.call(this); } - inherits(MyDuplex, Duplex); + Object.setPrototypeOf(MyDuplex.prototype, Duplex.prototype); + Object.setPrototypeOf(MyDuplex, Duplex); new MyDuplex(); } |