Skip to content

Commit 552d2be

Browse files
psmarshalladdaleax
authored andcommitted
test: improve test-util-inspect
PR-URL: #14003 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 6c6da38 commit 552d2be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-util-inspect.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
'use strict';
2323
require('../common');
2424
const assert = require('assert');
25+
const JSStream = process.binding('js_stream').JSStream;
2526
const util = require('util');
2627
const vm = require('vm');
2728

@@ -82,7 +83,7 @@ assert.strictEqual(util.inspect(Object.assign(new String('hello'),
8283
{ [Symbol('foo')]: 123 }), { showHidden: true }),
8384
'{ [String: \'hello\'] [length]: 5, [Symbol(foo)]: 123 }');
8485

85-
assert.strictEqual(util.inspect(process.stdin._handle._externalStream),
86+
assert.strictEqual(util.inspect((new JSStream())._externalStream),
8687
'[External]');
8788

8889
{

0 commit comments

Comments
 (0)