Hacker News new | past | comments | ask | show | jobs | submit login

I can't repro, how are you getting it to call toString?



const foo = () => {}

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

console.log(foo)


Doesn't work on Firefox.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: