Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 552d2be

Browse filesBrowse files
psmarshalladdaleax
authored andcommitted
test: improve test-util-inspect
PR-URL: #14003 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent 6c6da38 commit 552d2be
Copy full SHA for 552d2be

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-util-inspect.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.