4 ms·
Big caveat: this doesn't work in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode/Transi
by callum85 13y ago
Big caveat: this doesn't work in strict mode.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode/Transitioning_to_strict_mode#Poisoned_arguments_and_function_properties https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- Touche 13y agoJust comment out the line that uses caller and always pass your arguments.
- adam-a 13y agoI was unaware of the strict mode problem. I never use it myself, probably because I'm not developing for the web, but a browser embedded in a desktop app. I will have a look at providing a version that works in strict mode.