Implement IsRegExp operation (#3321)
Algorithm is based on ECMA-262 v6, 22.1.3.1.1 JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
committed by
Robert Fancsik
parent
bd0cb33172
commit
c31452c138
@@ -45,14 +45,6 @@ assert (r.ignoreCase == true);
|
||||
assert (r.multiline == true);
|
||||
|
||||
var r2;
|
||||
try {
|
||||
r2 = RegExp (r,"gim");
|
||||
assert(false);
|
||||
}
|
||||
catch ( e )
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
}
|
||||
|
||||
r2 = RegExp (r);
|
||||
assert (r2.source == "a");
|
||||
|
||||
Reference in New Issue
Block a user