[pypy-svn] r35567 - pypy/dist/pypy/lang/js
santagada at codespeak.net
santagada at codespeak.net
Mon Dec 11 13:36:17 CET 2006
Author: santagada
Date: Mon Dec 11 13:36:14 2006
New Revision: 35567
Modified:
pypy/dist/pypy/lang/js/astgen.py
Log:
simple mistake... unnamed functions don't have a name
Modified: pypy/dist/pypy/lang/js/astgen.py
==============================================================================
--- pypy/dist/pypy/lang/js/astgen.py (original)
+++ pypy/dist/pypy/lang/js/astgen.py Mon Dec 11 13:36:14 2006
@@ -175,8 +175,8 @@
return Comma(from_dict(d['0']),from_dict(d['1']))
elif tp == 'DOT':
return Dot(from_dict(d['0']), from_dict(d['1']))
- elif tp == 'FUNCTION':
- name = d['name']
+ elif tp == 'FUNCTION':
+ name = d.get('name', '')
scope = scope_manager.enter_scope()
body = from_dict(d['body'])
if d['params'] == '':
More information about the Pypy-commit
mailing list