Author: Stephan <[email protected]>
Branch:
Changeset: r369:a380e25f0db6
Date: 2013-03-20 16:23 +0100
http://bitbucket.org/pypy/lang-js/changeset/a380e25f0db6/
Log: use _idx_put in array constructor
diff --git a/js/jsobj.py b/js/jsobj.py
--- a/js/jsobj.py
+++ b/js/jsobj.py
@@ -1015,13 +1015,13 @@
else:
length = 1
array = object_space.new_array(_w(length))
- array.put(u'0', _len)
+ array._idx_put(0, _len, False)
return array
else:
array = object_space.new_array()
for index, obj in enumerate(args):
- array.put(unicode(str(index)), obj)
+ array._idx_put(index, obj, False)
return array
def Construct(self, args=[]):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit