summaryrefslogtreecommitdiff
path: root/test/parallel/test-zlib-deflate-raw-inherits.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-zlib-deflate-raw-inherits.js')
-rw-r--r--test/parallel/test-zlib-deflate-raw-inherits.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-zlib-deflate-raw-inherits.js b/test/parallel/test-zlib-deflate-raw-inherits.js
index a24726a3fb..bb53caa9b5 100644
--- a/test/parallel/test-zlib-deflate-raw-inherits.js
+++ b/test/parallel/test-zlib-deflate-raw-inherits.js
@@ -2,17 +2,17 @@
require('../common');
const { DeflateRaw } = require('zlib');
-const { inherits } = require('util');
const { Readable } = require('stream');
// validates that zlib.DeflateRaw can be inherited
-// with util.inherits
+// with Object.setPrototypeOf
function NotInitialized(options) {
DeflateRaw.call(this, options);
this.prop = true;
}
-inherits(NotInitialized, DeflateRaw);
+Object.setPrototypeOf(NotInitialized.prototype, DeflateRaw.prototype);
+Object.setPrototypeOf(NotInitialized, DeflateRaw);
const dest = new NotInitialized();