[jsinterp] Fix global object extraction

Closes #7327
This commit is contained in:
pukkandan
2023-06-18 04:04:52 +05:30
parent 13ff780953
commit 01aba2519a
2 changed files with 7 additions and 2 deletions

View File

@@ -779,7 +779,7 @@ class JSInterpreter:
obj = {}
obj_m = re.search(
r'''(?x)
(?<!this\.)%s\s*=\s*{\s*
(?<!\.)%s\s*=\s*{\s*
(?P<fields>(%s\s*:\s*function\s*\(.*?\)\s*{.*?}(?:,\s*)?)*)
}\s*;
''' % (re.escape(objname), _FUNC_NAME_RE),