Fix leaking char buffer in RegExp.prototype[@@replace] (#3400)

Fixes #3392.

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-12-03 09:34:54 +01:00
committed by Robert Fancsik
parent cc03c08c3d
commit 9634ca556e
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -660,3 +660,11 @@ try {
} catch (e) {
assert (e === "abrupt @@replace")
}
class Regexplike2 {
exec() {
return {}
}
}
re = new Regexplike2();
assert (replace.call (re, "1") === "undefined");