3 ms·
Appears to use Function.caller ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller https://developer.mozilla.org/
by nebulous1 13y ago
Appears to use Function.caller ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... )
"Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future."
- mmastrac 13y agoIt might not be on the standards track, but the browser support table at the bottom seems to indicate that this is a de-facto standard.
- gnud 13y agoIt seems like you can avoid using Function.caller by suppling Args.js with the arguments yourself, like Args([/* argument definition */], arguments);
- adam-a 13y agoThat's right. The Function.caller bit was only added in quite late and the library works just as well without it, although you have to type a bit more.