summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/latin1/rope-stringchar.js
blob: d0afa891316c866b7673eaba09a79b61ab5c7497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function f(a, b) {
    assertEq(isLatin1(a), true);
    assertEq(isLatin1(b), false);
    var c = a + b;
    assertEq(isLatin1(c), false);
    assertEq(c[4], 'b');
    assertEq(c.charCodeAt(4), 98);
}

function test() {
    for (var i = 0; i < 15; i++) {
        f("aaaab\x00\x00\x00\x00\x00\x00", "\u{2603}");
    }
}

test();