Files
node/test/parallel
Ruben Bridgewater be30911361 util: fix .format() not always calling toString when it should be
This makes sure that `util.format('%s', object)` will always call
a user defined `toString` function. It was formerly not the case
when the object had the function declared on the super class.

At the same time this also makes sure that getters won't be
triggered accessing the `constructor` property.

PR-URL: https://github.com/nodejs/node/pull/30343
Fixes: https://github.com/nodejs/node/issues/30333
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2019-11-30 01:19:14 +01:00
..
2019-11-29 14:19:51 +05:30
2019-08-07 13:27:55 -07:00
2019-11-17 21:13:08 +05:30
2019-08-07 13:27:55 -07:00
2019-11-13 17:04:22 +00:00
2019-06-26 16:34:23 +08:00