summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/regexp_parse/Group.js
blob: ea930c9d3a7e4bbcdb7042c0eacfbf47f60befba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if (typeof parseRegExp === 'undefined')
    quit();

load(libdir + "regexp_parse.js");

test("(?:)", all_flags,
     Empty());
test("(?:a)", all_flags,
     Atom("a"));
test("X(?:a)Y", all_flags,
     Text([
         Atom("X"),
         Atom("a"),
         Atom("Y")
     ]));