Implement and add support for RegExp.prototype[@@search] (#3436)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
committed by
Zoltan Herczeg
parent
c525b1f10a
commit
d3b8bed2c1
+2
@@ -15,4 +15,6 @@
|
||||
// Changing exec should not affect replace.
|
||||
Object.getPrototypeOf(/x/).exec = function () { return 1234; }
|
||||
assert (/y/.exec("y") === 1234);
|
||||
|
||||
assert ("y".replace (/y/, "x") === "x");
|
||||
assert ("ay".search (/y/) === 1);
|
||||
Reference in New Issue
Block a user