MCPcopy Index your code
hub / github.com/nodejs/node / toString

Method toString

test/parallel/test-util-format.js:194–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)),

Calls

no outgoing calls

Tested by 15

testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36