Author: Stephan <[email protected]>
Branch:
Changeset: r284:8f8a17e7646c
Date: 2012-08-24 10:45 +0200
http://bitbucket.org/pypy/lang-js/changeset/8f8a17e7646c/
Log: mark immutable fields on Reference
diff --git a/js/lexical_environment.py b/js/lexical_environment.py
--- a/js/lexical_environment.py
+++ b/js/lexical_environment.py
@@ -37,6 +37,8 @@
class Reference(object):
+ _immutable_fields_ = ['base_env', 'base_value', 'referenced', 'strict']
+
def __init__(self, base_value=None, base_env=None, referenced=None,
strict=False):
self.base_env = base_env
self.base_value = base_value
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit