[pypy-svn] r36335 - pypy/dist/pypy/lang/js
santagada at codespeak.net
santagada at codespeak.net
Tue Jan 9 12:26:55 CET 2007
Author: santagada
Date: Tue Jan 9 12:26:38 2007
New Revision: 36335
Modified:
pypy/dist/pypy/lang/js/interpreter.py
Log:
actually passing the tests now
Modified: pypy/dist/pypy/lang/js/interpreter.py
==============================================================================
--- pypy/dist/pypy/lang/js/interpreter.py (original)
+++ pypy/dist/pypy/lang/js/interpreter.py Tue Jan 9 12:26:38 2007
@@ -589,9 +589,10 @@
return Script(getlist(t), var_decl, func_decl)
elif tp == 'SEMICOLON':
- if gettreeitem(t, 'expression').additional_info == 'null':
+ expr = gettreeitem(t, 'expression')
+ if isinstance(expr, Symbol):
return Semicolon()
- return Semicolon(from_tree(gettreeitem(t, 'expression')))
+ return Semicolon(from_tree(expr))
elif tp == 'STRING':
return String(gettreeitem(t, 'value').additional_info)
elif tp == 'THIS':
More information about the Pypy-commit
mailing list