Deprecated property (arguments.callee) used in CCDirector.js and CCLoader.js
Deprecated property (arguments.callee) used in CCDirector.js and CCLoader.js
Refactor #3591 [Closed]
- Status changed from New to Accepted
- Assignee set to pandamicro
- Target version set to v3.0 alpha
- Status changed from Accepted to Closed
Fixed by refactor all code using arguments.callee
ref: https://github.com/cocos2d/cocos2d-html5/pull/1470
- % Done changed from 0 to 100
Status: | Closed | |
---|---|---|
Start date: | 2014-01-07 | |
Priority: | Low | |
Due date: | ||
Assignee: | pandamicro | |
% Done: | 100% |
|
Category: | - | |
Target version: | v3.0 alpha |
CCDirector.js and CCLoader.js both include a reference to arguments.callee within functions, and this is not a valid property when in strict mode:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions\_and\_function\_scope/arguments/callee
I don’t know if this can be easily worked around, or if strict mode compatibility is a goal of the project, but I thought it should at least be noted.