<?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>79843</bug_id>
          
          <creation_ts>2012-02-28 16:04:38 -0800</creation_ts>
          <short_desc>Should not box `this` in strict-mode getters</short_desc>
          <delta_ts>2012-03-01 09:26:06 -0800</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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>79588</dup_id>
          
          <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="Domenic Denicola">domenic</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>erights</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>567193</commentid>
    <comment_count>0</comment_count>
    <who name="Domenic Denicola">domenic</who>
    <bug_when>2012-02-28 16:04:38 -0800</bug_when>
    <thetext>The following code should log &quot;number&quot; according to the ES5 spec, section 10.4.3 [1]:


Object.defineProperty(Object.prototype, &quot;getMe&quot;, {
    get: function () {
        &quot;use strict&quot;;
        console.log(typeof this);
    }
});

(0).getMe;


Instead it logs &quot;object&quot;.

See also es-discuss discussion [2] and test-262 bug [3].


[1]: http://es5.github.com/#x10.4.3
[2]: https://mail.mozilla.org/pipermail/es-discuss/2012-February/020781.html
[3]: https://bugs.ecmascript.org/show_bug.cgi?id=284</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>568005</commentid>
    <comment_count>1</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2012-02-29 15:29:30 -0800</bug_when>
    <thetext>Please retest in a nightly, this is already fixed. :-)

*** This bug has been marked as a duplicate of bug 79588 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>