[JSInterp] Improve JS classes, etc

This commit is contained in:
dirkf 2025-04-04 12:20:15 +01:00
commit d21717978c
2 changed files with 71 additions and 15 deletions

View file

@ -455,6 +455,7 @@ class TestJSInterpreter(unittest.TestCase):
def test_regex(self):
self._test('function f() { let a=/,,[/,913,/](,)}/; }', None)
self._test('function f() { let a=/,,[/,913,/](,)}/; return a.source; }', ',,[/,913,/](,)}')
jsi = JSInterpreter('''
function x() { let a=/,,[/,913,/](,)}/; "".replace(a, ""); return a; }