[jsinterp] Fix slice

pull/8/head
Philipp Hagemeister 11 years ago
parent 4bc7009e8a
commit 4cb71e9b6a

@ -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)

Loading…
Cancel
Save