Almost every method found on `Function.prototype` "works" (or, at least, does
not throw a TypeError before trying to work) if and only if the target is
callable, or if and only if `typeof` applied to the target produces
`"function"`.
That should not be different for `Function.prototype.toString()`. Even if
"working" means producing a useless string à la `"function () { [native code]
}"`.
—Claude
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss