Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect: fix console.log(%s, { [Symbol.toPrimitive]: () => hello }) #50992

Merged
merged 1 commit into from
May 12, 2024

Commits on May 11, 2024

  1. util: fix %s format behavior with Symbol.toPrimitive

    This commit ensures `console.log("%s", obj)` correctly invokes
    `obj[Symbol.toPrimitive]` for string conversion, fixing unexpected
    object display issue.
    
    Fixes: nodejs#50909
    Ch3nYuY authored and aduh95 committed May 11, 2024
    Configuration menu
    Copy the full SHA
    796a3ab View commit details
    Browse the repository at this point in the history