Bug 143148

Summary: Deconstruction parameters are bound too late
Product: WebKit Reporter: Saam Barati <sbarati>
Component: JavaScriptCoreAssignee: Saam Barati <sbarati>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo, ggaren, mark.lam, mmirman, msaboff, oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
WIP
none
patch fpizlo: review+

Description Saam Barati 2015-03-27 13:32:54 PDT
consider:

```
function test({arg}) {
    print(arg);
    function arg(){}
}
test({})
```

Should print the function, not undefined.

This is a simple fix in BytecodeGenerator::generate
Comment 1 Saam Barati 2015-03-27 15:56:38 PDT
Created attachment 249617 [details]
WIP

Waiting on a build to get tests results populated.
Comment 2 Saam Barati 2015-03-27 19:15:37 PDT
Created attachment 249634 [details]
patch
Comment 3 Filip Pizlo 2015-03-27 22:03:13 PDT
Comment on attachment 249634 [details]
patch

R=me.
Comment 4 Saam Barati 2015-03-27 23:02:58 PDT
landed in:
http://trac.webkit.org/changeset/182109