mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-09-11 20:12:41 +02:00
[jsinterp] Fix slice
This commit is contained in:
parent
4bc7009e8a
commit
4cb71e9b6a
@ -108,7 +108,7 @@ class JSInterpreter(object):
|
||||
index, howMany = argvals
|
||||
res = []
|
||||
for i in range(index, min(index + howMany, len(obj))):
|
||||
res.append(obj.pop(i))
|
||||
res.append(obj.pop(index))
|
||||
return res
|
||||
|
||||
return obj[member](argvals)
|
||||
|
Loading…
Reference in New Issue
Block a user