Author: Stephan <step...@stzal.com>
Branch: 
Changeset: r306:9075252019fe
Date: 2012-12-11 12:18 +0100
http://bitbucket.org/pypy/lang-js/changeset/9075252019fe/

Log:    add constructor to date prototype

diff --git a/js/builtins_date.py b/js/builtins_date.py
--- a/js/builtins_date.py
+++ b/js/builtins_date.py
@@ -90,6 +90,9 @@
 
     put_native_function(w_Date, u'UTC', parse)
 
+    # 15.9.5.1
+    put_property(w_DatePrototype, u'constructor', w_DatePrototype)
+
 
 @w_return
 def to_string(this, args):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to