Bug 13643

Summary: Implement Function.prototype.caller
Product: WebKit Reporter: Garrett Smith <xk1t>
Component: WebCore JavaScriptAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal    
Priority: P2    
Version: 419.x   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Test caller property none

Garrett Smith
Reported 2007-05-09 10:06:49 PDT
function.caller is essential for real application development. Necessary for: - checking a function's entryPoint (necessary for lazy-load singleton) - for debugging, to generate a stack trace function bar() { foo(); } function foo() { alert( foo.caller ); // undefined. ) bar(); Documentation from the fine folks at mozilla: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Function:caller Bug from the smart people working on mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=65683
Attachments
Test caller property (186 bytes, text/html)
2007-05-09 10:45 PDT, Garrett Smith
no flags
Sam Weinig
Comment 1 2007-05-09 10:24:40 PDT
Hi Garrett, thanks for submitting the report. Have you tested this in the latest nightly as I expect this has already been fixed.
Garrett Smith
Comment 2 2007-05-09 10:45:28 PDT
Created attachment 14434 [details] Test caller property It works!
Note You need to log in before you can comment on or make changes to this bug.