mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-21 05:44:02 -07:00
[JSInterp] Improve JS classes, etc
This commit is contained in:
parent
7513413794
commit
d21717978c
2 changed files with 71 additions and 15 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue