From d71dd97263afc65c5cbf9e08ddc94c13f2479b8c Mon Sep 17 00:00:00 2001 From: Masashi Hirano Date: Fri, 3 Aug 2018 00:52:27 +0900 Subject: 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 Reviewed-By: James M Snell --- doc/api/util.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/api/util.md') 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. -- cgit v1.2.3