Author: Stephan <[email protected]>
Branch: 
Changeset: r146:42c1711f2bc4
Date: 2011-11-02 12:46 +0100
http://bitbucket.org/pypy/lang-js/changeset/42c1711f2bc4/

Log:    removed obsolete Property class

diff --git a/js/jsexecution_context.py b/js/jsexecution_context.py
--- a/js/jsexecution_context.py
+++ b/js/jsexecution_context.py
@@ -36,7 +36,7 @@
         self._identifier_set_flags(name, flags)
 
     def assign(self, name, value):
-        from js.jsobj import READ_ONLY, Property
+        from js.jsobj import READ_ONLY
         assert name is not None
         try:
             if self.get_property_flags(name) & READ_ONLY:
@@ -46,7 +46,7 @@
             self.get_global_context().put(name, value, flags=0)
 
     def declare_variable(self, identifier, flags=DONT_DELETE):
-        from js.jsobj import w_Undefined, Property
+        from js.jsobj import w_Undefined
         self._map_addname(identifier)
         self.set_local_property_value(identifier, w_Undefined)
         self.set_property_flags(identifier, flags)
diff --git a/js/jsobj.py b/js/jsobj.py
--- a/js/jsobj.py
+++ b/js/jsobj.py
@@ -20,19 +20,6 @@
 class SeePage(NotImplementedError):
     pass
 
-class Property(object):
-    def __init__(self, name, value, flags = 0):
-        self.name = name
-        self.value = value
-        self.flags = flags
-
-    def __repr__(self):
-        return "|%s : %s %d|"%(self.name, self.value, self.flags)
-
-def internal_property(name, value):
-    """return a internal property with the right attributes"""
-    return Property(name, value, True, True, True, True)
-
 class W_Root(object):
     _settled_ = True
     _attrs_ = []
diff --git a/js/test/test_execution_context.py 
b/js/test/test_execution_context.py
--- a/js/test/test_execution_context.py
+++ b/js/test/test_execution_context.py
@@ -2,7 +2,7 @@
 
 from js.jsexecution_context import ExecutionContext
 from js.execution import ThrowException
-from js.jsobj import Property, w_Undefined
+from js.jsobj import w_Undefined
 
 def new_context(parent = None, size=3):
     context = ExecutionContext(parent)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to