Closed
Bug 759843
Opened 13 years ago
Closed 13 years ago
Function.caller is null in object's method
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: 4others2, Unassigned)
Details
Attachments
(1 file)
|
566 bytes,
text/plain
|
Details |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 20120420145725
Steps to reproduce:
An object's method, such as below, is called
smthMethod: function(args) {
// var a = arguments; // without this line this.smthMethod.caller===null
return this.smthMethod.caller.$previous.apply(this, args);
}
Actual results:
The Function.caller property is null. But if arguments is used all ok.
Expected results:
The Function.caller property should returns the function that invoked this method.
Fixed in FF ver. 13
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•