Ticket #6917 (closed enhancement: worksforme)
Replacing uses of arguments.callee with the function name.
|Reported by:||mikevsamuel||Owned by:|
The attached patch replaces uses of arguments.callee with the shorter, and semantically equivalent use of the function's name.
Please consider this patch as it will make future compatibility with EcmaScript 5 strict mode and harmony easier.
The patch is from http://github.com/jquery/jquery.git as of 18 August 2010.
From the EcmaScript 5 spec: Annex C (informative) The Strict Mode of ECMAScript ...
- Arguments objects for strict mode functions define non-configurable accessor properties named "caller" and "callee" which throw a TypeError exception on access (10.6).