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

fijal at codespeak.net fijal at codespeak.net
Wed Apr 2 05:40:36 CEST 2008


Author: fijal
Date: Wed Apr  2 05:40:36 2008
New Revision: 53250

Modified:
   pypy/branch/js-refactoring/pypy/lang/js/jscode.py
Log:
Basic member assignment


Modified: pypy/branch/js-refactoring/pypy/lang/js/jscode.py
==============================================================================
--- pypy/branch/js-refactoring/pypy/lang/js/jscode.py	(original)
+++ pypy/branch/js-refactoring/pypy/lang/js/jscode.py	Wed Apr  2 05:40:36 2008
@@ -386,7 +386,11 @@
 
 class BaseStoreMember(Opcode):
     def eval(self, ctx, stack):
-        XXX
+        left = stack.pop()
+        elem = stack.pop()
+        value = stack.pop()
+        left.Put(elem.ToString(), value)
+        stack.append(left)
 
 class STORE_MEMBER(BaseStoreMember):
     pass



More information about the Pypy-commit mailing list