<?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>25921</bug_id>
          
          <creation_ts>2009-05-21 02:12:30 -0700</creation_ts>
          <short_desc>REGRESSION: Using setTimeout.call or setTimeout.apply only works the first time is used</short_desc>
          <delta_ts>2009-05-21 17:29:10 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Raul Hudea">rhudea</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mrowe</cc>
    
    <cc>oliver</cc>
    
    <cc>steve</cc>
    
    <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>122300</commentid>
    <comment_count>0</comment_count>
    <who name="Raul Hudea">rhudea</who>
    <bug_when>2009-05-21 02:12:30 -0700</bug_when>
    <thetext>I&apos;ll add a test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122301</commentid>
    <comment_count>1</comment_count>
      <attachid>30533</attachid>
    <who name="Raul Hudea">rhudea</who>
    <bug_when>2009-05-21 02:13:58 -0700</bug_when>
    <thetext>Created attachment 30533
Simple test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122314</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-05-21 03:47:09 -0700</bug_when>
    <thetext>Seems like one of Oliver&apos;s recent optimisations may have introduced this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122315</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-05-21 03:47:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/6910264&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122360</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-05-21 09:14:26 -0700</bug_when>
    <thetext>*** Bug 23670 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122417</commentid>
    <comment_count>5</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2009-05-21 14:02:45 -0700</bug_when>
    <thetext>This occurs in the 4.0 beta, so it&apos;s not Oliver&apos;s recent changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122421</commentid>
    <comment_count>6</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2009-05-21 14:10:30 -0700</bug_when>
    <thetext>It also impacts the interpreter -- i think it may be a bug in op_resolve_global, but that doesn&apos;t explain why it only seems to effect .call and .apply</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122424</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2009-05-21 14:26:21 -0700</bug_when>
    <thetext>op_resolve_global is apparently broked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122433</commentid>
    <comment_count>8</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2009-05-21 15:03:58 -0700</bug_when>
    <thetext>Got it, we&apos;re caching a property on the global objects prototype chain as if it were directly on the global object</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122479</commentid>
    <comment_count>9</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2009-05-21 17:29:10 -0700</bug_when>
    <thetext>Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	JavaScriptCore/ChangeLog
	M	JavaScriptCore/interpreter/Interpreter.cpp
	M	JavaScriptCore/jit/JITStubs.cpp
	M	LayoutTests/ChangeLog
	A	LayoutTests/fast/js/global-function-resolve-expected.txt
	A	LayoutTests/fast/js/global-function-resolve.html
	A	LayoutTests/fast/js/resources/global-function-resolve.js
Committed r44016
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>30533</attachid>
            <date>2009-05-21 02:13:58 -0700</date>
            <delta_ts>2009-05-21 02:13:58 -0700</delta_ts>
            <desc>Simple test case</desc>
            <filename>test2.html</filename>
            <type>text/html</type>
            <size>577</size>
            <attacher name="Raul Hudea">rhudea</attacher>
            
              <data encoding="base64">DQo8aHRtbD4NCiAgPGhlYWQ+DQogICAgPHRpdGxlPlNldFRpbWVvdXQgVGVzdCBQYWdlPC90aXRs
ZT4NCiANCiAgICA8c2NyaXB0Pg0KICAgIGZ1bmN0aW9uIF9zZXRUaW1lb3V0KHRoaXNPYmplY3Qs
IGZ1bmMsIHQpIHsNCiAgICAgICAgc2V0VGltZW91dC5jYWxsKHRoaXNPYmplY3QsIGZ1bmMsIHQp
Ow0KICAgIH0NCg0KICAgIGZ1bmN0aW9uIHN0YXJ0KCkgew0KICAgICAgICBfc2V0VGltZW91dCh3
aW5kb3csIHRlc3QxLCAwKTsNCiAgICB9DQoNCiAgICBmdW5jdGlvbiB0ZXN0MSgpIHsNCiAgICAg
ICAgX3NldFRpbWVvdXQod2luZG93LCB0ZXN0MiwgMCk7DQogICAgfQ0KDQogICAgZnVuY3Rpb24g
dGVzdDIoKSB7DQogICAgICAgIHZhciBkID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImxvZyIp
Ow0KICAgICAgICBkLmlubmVySFRNTCA9ICJTVUNDRVNTIjsNCiAgICB9DQogDQogICAgPC9zY3Jp
cHQ+DQogDQogIDwvaGVhZD4NCiANCiAgPGJvZHkgb25sb2FkPSJzdGFydCgpIj4NCiANCiAgICA8
ZGl2IGlkPSJsb2ciPg0KICAgICAgICBGQUlMDQogICAgPC9kaXY+DQogIDwvYm9keT4NCiANCjwv
aHRtbD4NCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>