dirkf
2021-11-27 02:06:13 +00:00
parent e1eae16b56
commit 1ca673bd98
+1 -1
View File
@@ -416,7 +416,7 @@ class JSInterpreter(object):
elif member == 'splice':
assertion(isinstance(obj, list), 'must be applied on a list')
assertion(argvals, 'takes one or more arguments')
index, howMany = (argvals + [len(obj)])[:2]
index, howMany = map(int, (argvals + [len(obj)])[:2])
if index < 0:
index += len(obj)
add_items = argvals[2:]