Unverified Commit 1fe824bc authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

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: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
parent f8f96017
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment