mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-03 10:50:28 +00:00
[jsinterp] Fix for youtube player c81bbb4a
This commit is contained in:
@@ -212,6 +212,11 @@ class TestJSInterpreter(unittest.TestCase):
|
||||
''')
|
||||
self.assertEqual(jsi.call_function('x'), 7)
|
||||
|
||||
jsi = JSInterpreter('''
|
||||
function x() { return (l=[0,1,2,3], function(a, b){return a+b})((l[1], l[2]), l[3]) }
|
||||
''')
|
||||
self.assertEqual(jsi.call_function('x'), 5)
|
||||
|
||||
def test_void(self):
|
||||
jsi = JSInterpreter('''
|
||||
function x() { return void 42; }
|
||||
|
Reference in New Issue
Block a user