[pypy-svn] r55580 - pypy/branch/js-refactoring/pypy/lang/js

santagada at codespeak.net santagada at codespeak.net
Wed Jun 4 23:10:44 CEST 2008


Author: santagada
Date: Wed Jun  4 23:10:43 2008
New Revision: 55580

Modified:
   pypy/branch/js-refactoring/pypy/lang/js/interpreter.py
   pypy/branch/js-refactoring/pypy/lang/js/operations.py
Log:
3 simple blocked blocks solved

Modified: pypy/branch/js-refactoring/pypy/lang/js/interpreter.py
==============================================================================
--- pypy/branch/js-refactoring/pypy/lang/js/interpreter.py	(original)
+++ pypy/branch/js-refactoring/pypy/lang/js/interpreter.py	Wed Jun  4 23:10:43 2008
@@ -219,7 +219,7 @@
         ch = strval[i]
         if ch == '%':
             if (i + 2 < lgt and _ishex(strval[i+1]) and _ishex(strval[i+2])):
-                ch = ord(int(strval[i + 1] + strval[i + 2], 16))
+                ch = chr(int(strval[i + 1] + strval[i + 2], 16))
                 i += 2
             elif (i + 5 < lgt and strval[i + 1] == 'u' and
                   _ishex(strval[i + 2]) and _ishex(strval[i + 3]) and
@@ -261,7 +261,7 @@
     def Call(self, ctx, args=[], this=None):
         if len(args) >= 1:
             propname = args[0].ToString(ctx)
-            if propname in this.propdict and not this.propdict[propname].de:
+            if propname in this.propdict and not this.propdict[propname].flags & DE:
                 return newbool(True)
         return newbool(False)
 

Modified: pypy/branch/js-refactoring/pypy/lang/js/operations.py
==============================================================================
--- pypy/branch/js-refactoring/pypy/lang/js/operations.py	(original)
+++ pypy/branch/js-refactoring/pypy/lang/js/operations.py	Wed Jun  4 23:10:43 2008
@@ -465,7 +465,7 @@
             bytecode.emit('DELETE_MEMBER')
         elif isinstance(what, Member):
             what.left.emit(bytecode)
-            what.right.emit(bytecode)
+            what.expr.emit(bytecode)
             bytecode.emit('DELETE_MEMBER')
         else:
             what.left.emit(bytecode)



More information about the Pypy-commit mailing list