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

Fixes #3392.

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
This commit is contained in:
Dániel Bátyai authored and Robert Fancsik committed 2019-12-03 09:34:53 +01:00
1 parent cc03c08c3d
commit 9634ca556e
2 files changed
+10 -1

No files matched your search

+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");