aboutsummaryrefslogtreecommitdiff
path: root/test/compress/string-literal.js
blob: 5f49fb3e63a7487e717ce903e9bd8861ba2d8683 (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
25
26
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(/[\\/]/);
        }
        console.log(JSON.stringify(f("A/B\\C\\D/E\\F")));
    }
    expect: {
        function f(s) {
            return s.split(/[\\/]/);
        }
        console.log(JSON.stringify(f("A/B\\C\\D/E\\F")));
    }
    expect_stdout: '["A","B","C","D","E","F"]'
}