summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testRegExpTest.js
blob: d7121b98719d08ff6aa317cfd1ed666459abf72b (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| valgrind

function testRegExpTest() {
    var r = /abc/;
    var flag = false;
    for (var i = 0; i < 10; ++i)
        flag = r.test("abc");
    return flag;
}
assertEq(testRegExpTest(), true);