util: if present, fallback to `toString` using the %s formatter by BridgeAR · Pull Request #27621 · nodejs/node
BridgeAR
added
the
author ready
label
May 15, 2019This includes the information that some inputs are handled differently than others (e.g., `Symbols` are partially represented as `NaN`).
BridgeAR added a commit to BridgeAR/node that referenced this pull request
May 20, 2019This includes the information that some inputs are handled differently than others (e.g., `Symbols` are partially represented as `NaN`). PR-URL: nodejs#27621 Reviewed-By: Roman Reiss <me@silverwind.io>
BridgeAR added a commit to BridgeAR/node that referenced this pull request
May 20, 2019This makes sure that `util.format` uses `String` to stringify an object in case the object has an own property named `toString` with type `function`. That way objects that do not have such function are still inspected using `util.inspect` and the old behavior is preserved as well. PR-URL: nodejs#27621 Refs: jestjs/jest#8443 Reviewed-By: Roman Reiss <me@silverwind.io>
targos pushed a commit that referenced this pull request
May 20, 2019This includes the information that some inputs are handled differently than others (e.g., `Symbols` are partially represented as `NaN`). PR-URL: #27621 Reviewed-By: Roman Reiss <me@silverwind.io>
targos pushed a commit that referenced this pull request
May 20, 2019This makes sure that `util.format` uses `String` to stringify an object in case the object has an own property named `toString` with type `function`. That way objects that do not have such function are still inspected using `util.inspect` and the old behavior is preserved as well. PR-URL: #27621 Refs: jestjs/jest#8443 Reviewed-By: Roman Reiss <me@silverwind.io>
BridgeAR
deleted the
odd-to-string-behavior
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters