[pypy-commit] lang-js default: add constructor to date prototype

stepahn noreply at buildbot.pypy.org
Fri Dec 28 11:35:28 CET 2012


Author: Stephan <stephan at 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):


More information about the pypy-commit mailing list