Closed Bug 759843 Opened 12 years ago Closed 12 years ago

Function.caller is null in object's method

Categories

(Firefox :: Untriaged, defect)

12 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: 4others2, Unassigned)

Details

Attachments

(1 file)

Attached file 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.
Fixed in FF ver. 13
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: