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

util: support BigInt in util.format #22097

Closed
wants to merge 4 commits into from

Commits on Sep 16, 2018

  1. util: support BigInt in util.format

    Adding support for BigInt in util.format and console.log.
    Placeholder `%d` is replaced as Number when BigInt is set in
    second argument.
    Now, `util.format('%d', 1180591620717411303424n)` returns
    `'1.1805916207174113e+21'`.
    However, expected result is `'1180591620717411303424'`.
    Masashi Hirano committed Sep 16, 2018
    Configuration menu
    Copy the full SHA
    08f67c4 View commit details
    Browse the repository at this point in the history
  2. util: %i supports BigInt

    Masashi Hirano committed Sep 16, 2018
    Configuration menu
    Copy the full SHA
    932002c View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2018

  1. util: update util.md that supports BigInt

    Masashi Hirano committed Sep 18, 2018
    Configuration menu
    Copy the full SHA
    097ba59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    946fdec View commit details
    Browse the repository at this point in the history