summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testNativeSetter.js
blob: 79ddf56f935ae5f4a083a3dc09a6ed88ba64ef4e (plain)
1
2
3
4
5
6
7
8
function testNativeSetter() {
    var re = /foo/;
    var N = 19;
    for (var i = 0; i < N; i++)
        re.lastIndex = i;
    assertEq(re.lastIndex, N - 1);
}
testNativeSetter();