summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1549035.js
blob: f1d85bcbe30d6b1066d08ca0fbbc795ae272fbc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
var expected = 2;
for (var i = 0; i < 100; ++i) {
    if (i === 50) {
        expected = 0;
        String.prototype[Symbol.split] = function() {
            return [];
        };
    }
    var r = "ab".split("");
    assertEq(r.length, expected);
}