summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testMatchStringObject.js
blob: cde2da1aed576d9a7cc3cfa3ed664e661b8ae4ce (plain)
1
2
3
4
5
6
7
8
function testMatchStringObject() {
    var a = new String("foo");
    var b;
    for (i = 0; i < 300; i++)
        b = a.match(/bar/);
    return b;
}
assertEq(testMatchStringObject(), null);