Function.caller is null in object's method

RESOLVED WORKSFORME

Status

()

RESOLVED WORKSFORME
7 years ago
7 years ago

People

(Reporter: 4others2, Unassigned)

Tracking

12 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

566 bytes, text/plain
Details
(Reporter)

Description

7 years ago
Created attachment 628401 [details]
test.zip

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.
(Reporter)

Comment 1

7 years ago
Fixed in FF ver. 13
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.