Author: Stephan <[email protected]>
Branch:
Changeset: r302:e3c9379963dc
Date: 2012-09-04 16:04 +0200
http://bitbucket.org/pypy/lang-js/changeset/e3c9379963dc/
Log: immutable attributes for lexical environment
diff --git a/js/lexical_environment.py b/js/lexical_environment.py
--- a/js/lexical_environment.py
+++ b/js/lexical_environment.py
@@ -15,6 +15,7 @@
class LexicalEnvironment(object):
+ _immutable_fields_ = ['outer_environment', 'environment_record']
def __init__(self, outer_environment=None):
assert isinstance(outer_environment, LexicalEnvironment) or
outer_environment is None
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit