Update RegExp.prototype accessors for ES11 (#4103)

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
This commit is contained in:
Dániel Bátyai
2020-08-06 14:24:48 +02:00
committed by GitHub
parent 531f724926
commit 3d44b26aeb
6 changed files with 42 additions and 72 deletions
+1 -6
View File
@@ -61,12 +61,7 @@ var r = /abc/yg;
m = r.exec ("strabcstr");
assert (m === null);
try {
RegExp.prototype.flags;
assert (false);
} catch (e) {
assert (e instanceof TypeError);
}
assert (RegExp.prototype.flags === "");
var flagsProp = Object.getOwnPropertyDescriptor (RegExp.prototype, "flags");
assert(flagsProp.get.call({}) === '');