()
| 192 | // String format specifier including `toString` properties on the prototype. |
| 193 | { |
| 194 | class Foo { toString() { return 'Bar'; } } |
| 195 | assert.strictEqual(util.format('%s', new Foo()), 'Bar'); |
| 196 | assert.strictEqual( |
| 197 | util.format('%s', Object.setPrototypeOf(new Foo(), null)), |
no outgoing calls