Hacker News new | ask | show | jobs
by easrng 1182 days ago
I can't repro, how are you getting it to call toString?
1 comments

const foo = () => {}

foo.toString = () => console.warn("called")

console.log(foo)

Doesn't work on Firefox.