1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 19:52:11 +00:00

[jsinterp] Fix slice

This commit is contained in:
Philipp Hagemeister 2014-07-25 07:04:39 +02:00
parent 4bc7009e8a
commit 4cb71e9b6a

View file

@ -108,7 +108,7 @@ class JSInterpreter(object):
index, howMany = argvals index, howMany = argvals
res = [] res = []
for i in range(index, min(index + howMany, len(obj))): for i in range(index, min(index + howMany, len(obj))):
res.append(obj.pop(i)) res.append(obj.pop(index))
return res return res
return obj[member](argvals) return obj[member](argvals)