summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorZYSzys <17367077526@163.com>2018-12-28 12:10:45 +0800
committerRich Trott <rtrott@gmail.com>2018-12-30 19:42:18 -0800
commit2f981cdd5824845aeaf0abb0412b64bb31f49225 (patch)
tree37ad8a5e06e8b3c133424a481c78bbec636d5591 /test/fixtures
parenta2f81df5a779d2d1414528a79925853eebf166a7 (diff)
downloadandroid-node-v8-2f981cdd5824845aeaf0abb0412b64bb31f49225.tar.gz
android-node-v8-2f981cdd5824845aeaf0abb0412b64bb31f49225.tar.bz2
android-node-v8-2f981cdd5824845aeaf0abb0412b64bb31f49225.zip
test: remove `util.inherits()` usage
PR-URL: https://github.com/nodejs/node/pull/25245 Refs: https://github.com/nodejs/node/pull/24755 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/repl-tab-completion-nested-repls.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixtures/repl-tab-completion-nested-repls.js b/test/fixtures/repl-tab-completion-nested-repls.js
index 832734a22a..ceff6e7945 100644
--- a/test/fixtures/repl-tab-completion-nested-repls.js
+++ b/test/fixtures/repl-tab-completion-nested-repls.js
@@ -7,7 +7,6 @@
'use strict';
const { Stream } = require('stream');
-const { inherits } = require('util');
function noop() {}
// A stream to push an array into a REPL
@@ -19,7 +18,8 @@ function ArrayStream() {
};
}
-inherits(ArrayStream, Stream);
+Object.setPrototypeOf(ArrayStream.prototype, Stream.prototype);
+Object.setPrototypeOf(ArrayStream, Stream);
ArrayStream.prototype.readable = true;
ArrayStream.prototype.writable = true;
ArrayStream.prototype.pause = noop;
@@ -47,4 +47,4 @@ putIn.run([
]);
// In Node.js 10.11.0, this next line will terminate the repl silently...
-testMe.complete('inner.o', () => { throw new Error('fhqwhgads'); });
+testMe.complete('inner.o', () => { throw new Error('fhqwhgads'); }); \ No newline at end of file