<?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>126075</bug_id>
          
          <creation_ts>2013-12-20 11:30:04 -0800</creation_ts>
          <short_desc>Deconstruction patterns in parameter list don&apos;t create local variables (wut?)</short_desc>
          <delta_ts>2013-12-20 11:30:04 -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>NEW</bug_status>
          <resolution></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>1</everconfirmed>
          <reporter name="Oliver Hunt">oliver</reporter>
          <assigned_to name="Oliver Hunt">oliver</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>961939</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2013-12-20 11:30:04 -0800</bug_when>
    <thetext>&gt;&gt;&gt; function f([a,b]){}
&lt;global&gt;#CaPZ5W:[0x7f90c9d08a70-&gt;0x11245f770, NoneGlobal]: 6 m_instructions; 48 bytes; 1 parameter(s); 2 callee register(s); 0 variable(s)
[   0] enter             
[   1] mov               loc0, Undefined(@k0)
[   4] end               loc0

Constants:
   k0 = Undefined

undefined
&gt;&gt;&gt; f([1,2])
&lt;global&gt;#CMJCpr:[0x7f90c9c104c0-&gt;0x11245f6f0, NoneGlobal]: 33 m_instructions; 264 bytes; 1 parameter(s); 10 callee register(s); 0 variable(s)
[   0] enter             
[   1] mov               loc0, Undefined(@k0)
[   4] resolve_scope     loc3, f(@id0), 1
[  10] get_from_scope    loc1, loc3, f(@id0), 1
[  18] new_array_buffer  loc2, 0, 2
[  23] call              loc0, loc1, 2, 10 status(Not Set)    Original; predicting None
[  31] end               loc0

Identifiers:
  id0 = f

Constants:
   k0 = Undefined

f#EQKQNp:[0x7f90cc0070c0-&gt;0x110ecf570, NoneFunctionCall]: 47 m_instructions; 376 bytes; 2 parameter(s); 2 callee register(s); 0 variable(s)
[   0] enter             
[   1] mov               loc0, Int32: 0(@k0)
[   4] get_by_val        loc0, arg1, loc0    Original; predicting None
[  10] resolve_scope     loc1, a(@id0), 0 &lt;- wit? *******
[  16] put_to_scope      loc1, a(@id0), loc0, 65536
[  23] mov               loc0, Int32: 1(@k1)
[  26] get_by_val        loc0, arg1, loc0    Original; predicting None
[  32] resolve_scope     loc1, b(@id1), 0
[  38] put_to_scope      loc1, b(@id1), loc0, 65536
[  45] ret               Undefined(@k2)

Identifiers:
  id0 = a
  id1 = b

Constants:
   k0 = Int32: 0
   k1 = Int32: 1
   k2 = Undefined

undefined</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>