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();