From fe14f9b3d315f7bc0953c59706eb61959180ec29 Mon Sep 17 00:00:00 2001
From: Peter Marshall
Date: Fri, 30 Jun 2017 13:56:08 +0200
Subject: [PATCH] test: improve test-util-inspect
PR-URL: https://github.com/nodejs/node/pull/14003
Reviewed-By: Colin Ihrig
Reviewed-By: Timothy Gu
Reviewed-By: Luigi Pinca
Reviewed-By: Yuta Hiroto
Reviewed-By: Refael Ackermann
---
test/parallel/test-util-inspect.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js
index 3bba320b36c9e0..7fc5fb4eac0495 100644
--- a/test/parallel/test-util-inspect.js
+++ b/test/parallel/test-util-inspect.js
@@ -22,6 +22,7 @@
'use strict';
const common = require('../common');
const assert = require('assert');
+const JSStream = process.binding('js_stream').JSStream;
const util = require('util');
const vm = require('vm');
@@ -83,7 +84,7 @@ assert.strictEqual(util.inspect(Object.assign(new String('hello'),
{ [Symbol('foo')]: 123 }), { showHidden: true }),
'{ [String: \'hello\'] [length]: 5, [Symbol(foo)]: 123 }');
-assert.strictEqual(util.inspect(process.stdin._handle._externalStream),
+assert.strictEqual(util.inspect((new JSStream())._externalStream),
'[External]');
{