aboutsummaryrefslogtreecommitdiff
path: root/test/compress/string-literal.js
blob: 1138fed8f5832d6cfcdc0de3d466f1304a882c0c (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
octal_escape_sequence: {
    input: {
        var boundaries = "\0\7\00\07\70\77\000\077\300\377";
        var border_check = "\400\700\0000\3000";
    }
    expect: {
        var boundaries = "\x00\x07\x00\x07\x38\x3f\x00\x3f\xc0\xff";
        var border_check = "\x20\x30\x38\x30\x00\x30\xc0\x30";
    }
}

issue_1929: {
    input: {
        function f(s) {
            return s.split(/[\\/]/);
        }
    }
    expect_exact: "function f(s){return s.split(/[\\\\/]/)}"
}