Skip to content

Commit

Permalink
test: use a different external object in test-util-inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
psmarshall committed Jul 24, 2017
1 parent 6c60691 commit 559dce3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-util-inspect.js
Expand Up @@ -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');

Expand Down Expand Up @@ -82,7 +83,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]');

{
Expand Down

0 comments on commit 559dce3

Please sign in to comment.