Author: Andrews Medina <[email protected]>
Branch: 
Changeset: r384:5b134866e4d5
Date: 2013-05-13 13:35 -0300
http://bitbucket.org/pypy/lang-js/changeset/5b134866e4d5/

Log:    removed forEach incomplete code.

diff --git a/js/builtins/array.py b/js/builtins/array.py
--- a/js/builtins/array.py
+++ b/js/builtins/array.py
@@ -40,8 +40,6 @@
     # 15.4.4.11
     put_native_function(w_ArrayPrototype, u'sort', sort)
 
-    put_native_function(w_ArrayPrototype, u'forEach', for_each)
-
 
 # 15.4.4.7
 @w_return
@@ -164,17 +162,10 @@
         lower = lower + 1
 
 
-@w_return
-def for_each(this):
-    obj = this
-    length = this.get(u'length').ToUInt32()
-    return this
-
-
 # 15.4.4.11
 @w_return
 def sort(this, args):
-    obj = this.ToObject()
+    obj = this
     length = this.get(u'length').ToUInt32()
 
     comparefn = get_arg(args, 0)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to