diff options
author | Masashi Hirano <cherrydog07@gmail.com> | 2018-08-03 00:52:27 +0900 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2018-10-09 20:11:48 +0200 |
commit | d71dd97263afc65c5cbf9e08ddc94c13f2479b8c (patch) | |
tree | e10e97425b5df13dd6cf475e77548fc3d3cf2679 /doc/api/util.md | |
parent | 186ce7e837bde20bd2726d662721a93c95ba24a6 (diff) | |
download | android-node-v8-d71dd97263afc65c5cbf9e08ddc94c13f2479b8c.tar.gz android-node-v8-d71dd97263afc65c5cbf9e08ddc94c13f2479b8c.tar.bz2 android-node-v8-d71dd97263afc65c5cbf9e08ddc94c13f2479b8c.zip |
util: support BigInt in util.format
`util.format` and `console.log` now support BigInt via the existing
format specifiers `%i` and `%d`.
PR-URL: https://github.com/nodejs/node/pull/22097
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/util.md')
-rw-r--r-- | doc/api/util.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/util.md b/doc/api/util.md index e8576d7b8d..ead1afcd42 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -202,8 +202,8 @@ Each placeholder token is replaced with the converted value from the corresponding argument. Supported placeholders are: * `%s` - `String`. -* `%d` - `Number` (integer or floating point value). -* `%i` - Integer. +* `%d` - `Number` (integer or floating point value) or `BigInt`. +* `%i` - Integer or `BigInt`. * `%f` - Floating point value. * `%j` - JSON. Replaced with the string `'[Circular]'` if the argument contains circular references. |