diff options
author | Ali BARIN <ali.barin53@gmail.com> | 2017-03-03 15:43:16 +0300 |
---|---|---|
committer | Evan Lucas <evanlucas@me.com> | 2017-03-07 14:56:56 +0300 |
commit | 7b84363636843b6267f755c7023999ec67f981e2 (patch) | |
tree | 4b3037219e5a828f1fd141eccc9a0acf1335038b /test | |
parent | 84028888dbf1be8f09c41e2e686a202527caccf9 (diff) |
util: fix inspecting symbol key in string
PR-URL: https://github.com/nodejs/node/pull/11672
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-util-inspect.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index cf07f4c8213..33e0253a9e9 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -50,6 +50,9 @@ assert.strictEqual(util.inspect(Object.create({}, {visible: {value: 1, enumerable: true}, hidden: {value: 2}})), '{ visible: 1 }' ); +assert.strictEqual(util.inspect(Object.assign(new String('hello'), + { [Symbol('foo')]: 123 }), { showHidden: true }), + '{ [String: \'hello\'] [length]: 5, [Symbol(foo)]: 123 }'); { const regexp = /regexp/; |