<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>13643</bug_id>
          
          <creation_ts>2007-05-09 10:06:49 -0700</creation_ts>
          <short_desc>Implement Function.prototype.caller</short_desc>
          <delta_ts>2007-05-09 13:31:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore JavaScript</component>
          <version>419.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Garrett Smith">xk1t</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10479</commentid>
    <comment_count>0</comment_count>
    <who name="Garrett Smith">xk1t</who>
    <bug_when>2007-05-09 10:06:49 -0700</bug_when>
    <thetext>function.caller is essential for real application development. 

Necessary for: 
 - checking a function&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10484</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2007-05-09 10:24:40 -0700</bug_when>
    <thetext>Hi Garrett, thanks for submitting the report.  Have you tested this in the latest nightly as I expect this has already been fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10488</commentid>
    <comment_count>2</comment_count>
      <attachid>14434</attachid>
    <who name="Garrett Smith">xk1t</who>
    <bug_when>2007-05-09 10:45:28 -0700</bug_when>
    <thetext>Created attachment 14434
Test caller property

It works!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14434</attachid>
            <date>2007-05-09 10:45:28 -0700</date>
            <delta_ts>2007-05-09 10:45:28 -0700</delta_ts>
            <desc>Test caller property</desc>
            <filename>testCaller.html</filename>
            <type>text/html</type>
            <size>186</size>
            <attacher name="Garrett Smith">xk1t</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgp0ZXN0IGNhbGxlcgo8c2NyaXB0PgpmdW5jdGlvbiBiYXIoKSB7CiAgZm9v
KCk7Cn0KCmZ1bmN0aW9uIGZvbygpIHsgCiAgYWxlcnQoIGZvby5jYWxsZXIgKTsgLy8gdW5kZWZp
bmVkLgp9Cjwvc2NyaXB0Pgo8YSBocmVmPSJqYXZhc2NyaXB0OmJhcigpOyI+YmFyKCk7PC9hPgoK
PC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>