Hi,

I was wondering whether there is a way to observe whether a given random 
function is strict (or sloppy, or neither).

Apart from flawed guess based on `Function#toString` (flawed, because it could 
only detect "use strict" prologue, which is insufficient), the only way I see 
is to observe whether the nonstandard, deprecated and unbeloved 
`Function#arguments` and  `Function#caller` functionalities throw an error. Are 
there other ways. (If not, I find it somewhat unfortunate that only such 
nonstandard features leak this information.)

—Claude
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to