aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-126.js
blob: 7a597b87cf8bd79bd603d193ee6f888bf0b21545 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
concatenate_rhs_strings: {
    options = {
        evaluate: true,
        unsafe: true,
    }
    input: {
        foo(bar() + 123 + "Hello" + "World");
        foo(bar() + (123 + "Hello") + "World");
        foo((bar() + 123) + "Hello" + "World");
        foo(bar() + 123 + "Hello" + "World" + ("Foo" + "Bar"));
        foo("Foo" + "Bar" + bar() + 123 + "Hello" + "World" + ("Foo" + "Bar"));
        foo("Hello" + bar() + 123 + "World");
        foo(bar() + 'Foo' + (10 + parseInt('10')));
    }
    expect: {
        foo(bar() + 123 + "HelloWorld");
        foo(bar() + "123HelloWorld");
        foo((bar() + 123) + "HelloWorld");
        foo(bar() + 123 + "HelloWorldFooBar");
        foo("FooBar" + bar() + "123HelloWorldFooBar");
        foo("Hello" + bar() + "123World");
        foo(bar() + 'Foo' + (10 + parseInt('10')));
    }
}
ng.texi?id=33391ee5c1716b35b9577237e18f5fc347192a3b'>doc: Recommend "make authenticate" after ./bootstrap....Ludovic Courtès 2020-06-14doc: Adjust branching and rebuilding strategy to match reality....Marius Bakke 2020-05-28doc: Remove explicit support for mips64el-linux....Efraim Flashner 2020-05-25doc: Fix typos....zimoun 2020-05-22maint: Add "make check-channel-news"....Ludovic Courtès 2020-05-12doc: Specify the branch name in the title of a patch....Brice Waegeneire 2020-05-04doc: Recommend against SHA1 OpenPGP signatures....Ludovic Courtès 2020-05-04doc: Document committer authorization....Ludovic Courtès 2020-03-13doc: Update guidance about Python 2 package variants....Leo Famulari 2020-03-10doc: Use HTTPS for external links....Vitaliy Shatrov 2020-03-09doc: Use an https link for Contributor Covenant....Jakub Kądziołka