Files
node/lib/internal
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-25 10:28:15 +01:00
2019-11-26 18:50:58 +05:30
2019-11-27 18:27:12 -05:00
2019-11-25 10:28:15 +01:00
2019-11-22 21:27:16 -08:00
2019-11-25 10:28:15 +01:00
2019-11-25 10:28:15 +01:00
2019-11-25 10:28:15 +01:00
2018-05-18 15:25:41 +02:00
2019-11-26 13:30:38 +05:30
2019-11-26 18:43:41 +05:30
2019-11-25 10:28:15 +01:00
2019-11-25 09:23:51 +05:30
2019-11-25 10:28:15 +01:00
2019-11-25 10:28:15 +01:00
2019-11-25 19:52:57 +05:30

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.