diff options
Diffstat (limited to 'js/src/jit-test/tests/regexp_parse/CharacterClass_ClassEscape.js')
-rw-r--r-- | js/src/jit-test/tests/regexp_parse/CharacterClass_ClassEscape.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/regexp_parse/CharacterClass_ClassEscape.js b/js/src/jit-test/tests/regexp_parse/CharacterClass_ClassEscape.js new file mode 100644 index 000000000..abb342fc2 --- /dev/null +++ b/js/src/jit-test/tests/regexp_parse/CharacterClass_ClassEscape.js @@ -0,0 +1,13 @@ +if (typeof parseRegExp === 'undefined') + quit(); + +load(libdir + "regexp_parse.js"); + +test("[\b]", all_flags, + CharacterClass([ + ["\u0008", "\u0008"] + ])); +test("[\-]", all_flags, + CharacterClass([ + ["-", "-"] + ])); |