Bug 156059 - [ES6] Arrow function syntax. Add missed test for using 'with' and 'this' in arrow function.
Summary: [ES6] Arrow function syntax. Add missed test for using 'with' and 'this' in a...
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Blocks: 140855
  Show dependency treegraph
Reported: 2016-03-31 00:18 PDT by GSkachkov
Modified: 2016-04-02 18:22 PDT (History)
2 users (show)

See Also:

Patch (2.29 KB, patch)
2016-04-02 12:52 PDT, GSkachkov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description GSkachkov 2016-03-31 00:18:37 PDT
Add tests that cover following case in arrow function

function foo() {
    let arr = () => {
        with ({'this': 40}) {
            return this;
    return arr();

let o1 = {'this': 20};

assert(o1 === foo.call(o1));
Comment 1 GSkachkov 2016-04-02 12:52:19 PDT
Created attachment 275475 [details]
Comment 2 WebKit Commit Bot 2016-04-02 18:22:23 PDT
Comment on attachment 275475 [details]

Clearing flags on attachment: 275475

Committed r198978: <http://trac.webkit.org/changeset/198978>
Comment 3 WebKit Commit Bot 2016-04-02 18:22:26 PDT
All reviewed patches have been landed.  Closing bug.