summaryrefslogtreecommitdiff
path: root/doc/api/util.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-10-17 09:45:11 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-12-03 12:34:42 +0100
commit1fe824bcbb0267265a8ccdb7301b7b8e3e8779f3 (patch)
treefbd81738dce5338f0ef863bc34e5cb08df9f3449 /doc/api/util.md
parentf8f96017e82abe4e965251b2f6072bdb6bea9d51 (diff)
downloadandroid-node-v8-1fe824bcbb0267265a8ccdb7301b7b8e3e8779f3.tar.gz
android-node-v8-1fe824bcbb0267265a8ccdb7301b7b8e3e8779f3.tar.bz2
android-node-v8-1fe824bcbb0267265a8ccdb7301b7b8e3e8779f3.zip
util,console: handle symbols as defined in the spec
The `console` functions rely on the `util.format()` behavior. It did not follow the whatwg spec when it comes to symbols in combination with the %d, %i and %f format specifiers. Using a symbol argument in combination with one of these specifiers resulted in an error instead of returning `'NaN'`. This is now fixed by this patch. PR-URL: https://github.com/nodejs/node/pull/23708 Refs: https://console.spec.whatwg.org/#formatter Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc/api/util.md')
-rw-r--r--doc/api/util.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/util.md b/doc/api/util.md
index 8b2e7d2e41..9c4c6cca40 100644
--- a/doc/api/util.md
+++ b/doc/api/util.md
@@ -184,6 +184,10 @@ property take precedence over `--trace-deprecation` and
added: v0.5.3
changes:
- version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/23708
+ description: The `%d`, `%f` and `%i` specifiers now support Symbols
+ properly.
+ - version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/23162
description: The `format` argument is now only taken as such if it actually
contains format specifiers.