[pypy-svn] r31710 - pypy/dist/pypy/translator/js

micktwomey at codespeak.net micktwomey at codespeak.net
Sun Aug 27 12:31:43 CEST 2006


Author: micktwomey
Date: Sun Aug 27 12:31:41 2006
New Revision: 31710

Modified:
   pypy/dist/pypy/translator/js/database.py
Log:
(fijal, micktwomey) Only begin the consts if the rendered set is empty


Modified: pypy/dist/pypy/translator/js/database.py
==============================================================================
--- pypy/dist/pypy/translator/js/database.py	(original)
+++ pypy/dist/pypy/translator/js/database.py	Sun Aug 27 12:31:41 2006
@@ -136,7 +136,8 @@
             return const
 
     def gen_constants(self, ilasm):
-        ilasm.begin_consts(self.const_var.name)
+        if not self.rendered:
+            ilasm.begin_consts(self.const_var.name)
         
         try:
             while True:



More information about the Pypy-commit mailing list