From ab6d5006b4e1ba41b0d5ec60851b5cf072825923 Mon Sep 17 00:00:00 2001 From: Lord-McSweeney <84632019+Lord-McSweeney@users.noreply.github.com> Date: Fri, 31 Mar 2023 22:44:56 -0700 Subject: [PATCH] avm2: Make sure RegExp prototype is not enumerable --- core/src/avm2/globals/RegExp.as | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/avm2/globals/RegExp.as b/core/src/avm2/globals/RegExp.as index 45ebb85f3..e58c66c91 100644 --- a/core/src/avm2/globals/RegExp.as +++ b/core/src/avm2/globals/RegExp.as @@ -27,5 +27,8 @@ package { prototype.test = function(str:String = ""):Boolean { return this.AS3::test(str); } + + prototype.setPropertyIsEnumerable("exec", false); + prototype.setPropertyIsEnumerable("test", false); } -} \ No newline at end of file +}