Fix null escape in character classes (#3192)

Fixes #3001.

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
Dániel Bátyai
2019-10-03 09:28:00 +02:00
committed by Robert Fancsik
parent 5ed8647b9e
commit 21e17a1412
2 changed files with 8 additions and 2 deletions
+7
View File
@@ -133,3 +133,10 @@ assert (r == "abcdefghjklmnopqrstuvwxyz");
r = new RegExp("[\\u0800-\\uffff]", "g");
assert (r.test ("\uffff"));
assert (!r.test ("\uffff"));
r = new RegExp("[\0]");
assert (r.test ("\0"));
assert (!r.test ("0"));
r = new RegExp("[\0-\1]");
assert (r.test ("\1"));