[pypy-svn] r34679 - pypy/dist/pypy/translator/js/demo/jsdemo

ac at codespeak.net ac at codespeak.net
Thu Nov 16 17:02:18 CET 2006


Author: ac
Date: Thu Nov 16 17:02:17 2006
New Revision: 34679

Modified:
   pypy/dist/pypy/translator/js/demo/jsdemo/support.py
Log:
Oops, have rpython2javascript not invoke pdb.

Modified: pypy/dist/pypy/translator/js/demo/jsdemo/support.py
==============================================================================
--- pypy/dist/pypy/translator/js/demo/jsdemo/support.py	(original)
+++ pypy/dist/pypy/translator/js/demo/jsdemo/support.py	Thu Nov 16 17:02:17 2006
@@ -2,7 +2,7 @@
 import sys, new
 from pypy.translator.js.main import rpython2javascript
 
-def js_source(functions):
+def js_source(functions, use_pdb=False):
     mod = new.module('_js_src')
     function_names = []
     for func in functions:
@@ -14,7 +14,7 @@
         function_names.append(name)
     sys.modules['_js_src'] = mod
     try:
-        return rpython2javascript(mod, function_names)
+        return rpython2javascript(mod, function_names, use_pdb=use_pdb)
     finally:
         del sys.modules['_js_src']
 



More information about the Pypy-commit mailing list