Skip to content

util.inspect with showHidden does not display exotic object name #36151

Closed
@guybedford

Description

@guybedford
  • Version: 15.2.1
  • Platform: Windows
  • Subsystem: Util

What steps will reproduce the bug?

test.mjs

import util from 'util';
import * as m from './test.mjs';
console.log(util.inspect(m, { showHidden: true }));

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

[Module] { [Symbol(Symbol.toStringTag)]: 'Module' }

What do you see instead?

[] { [Symbol(Symbol.toStringTag)]: 'Module' }

Where the leading [] seems like a display bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    utilIssues and PRs related to the built-in util module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions