Author: Stephan <[email protected]>
Branch: 
Changeset: r253:b513d68a08b4
Date: 2012-06-05 18:32 +0200
http://bitbucket.org/pypy/lang-js/changeset/b513d68a08b4/

Log:    fix ToString(-0)

diff --git a/js/jsobj.py b/js/jsobj.py
--- a/js/jsobj.py
+++ b/js/jsobj.py
@@ -1295,6 +1295,10 @@
                 return 'Infinity'
             else:
                 return '-Infinity'
+
+        if self._floatval_ == 0:
+            return '0'
+
         res = ''
         try:
             res = formatd(self._floatval_, 'g', 10)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to