[pypy-svn] r56191 - pypy/branch/js-refactoring-quickhacks/pypy/lang/js
santagada at codespeak.net
santagada at codespeak.net
Mon Jun 30 21:45:21 CEST 2008
Author: santagada
Date: Mon Jun 30 21:45:21 2008
New Revision: 56191
Modified:
pypy/branch/js-refactoring-quickhacks/pypy/lang/js/interpreter.py
pypy/branch/js-refactoring-quickhacks/pypy/lang/js/jscode.py
Log:
translation fixes
Modified: pypy/branch/js-refactoring-quickhacks/pypy/lang/js/interpreter.py
==============================================================================
--- pypy/branch/js-refactoring-quickhacks/pypy/lang/js/interpreter.py (original)
+++ pypy/branch/js-refactoring-quickhacks/pypy/lang/js/interpreter.py Mon Jun 30 21:45:21 2008
@@ -50,7 +50,7 @@
return args[0].ToObject(ctx)
else:
obj = create_object(ctx, u'Object', Value = w_Null)
- Object = ctx.get_global().Get(ctx, 'Object')
+ Object = ctx.get_global().Get(ctx, u'Object')
obj.propdict[u'prototype'] = Property(u'prototype', Object, DE | DD | RO)
obj.propdict[u'__proto__'] = Property(u'prototype', Object, DE | DD | RO)
return obj
Modified: pypy/branch/js-refactoring-quickhacks/pypy/lang/js/jscode.py
==============================================================================
--- pypy/branch/js-refactoring-quickhacks/pypy/lang/js/jscode.py (original)
+++ pypy/branch/js-refactoring-quickhacks/pypy/lang/js/jscode.py Mon Jun 30 21:45:21 2008
@@ -119,7 +119,7 @@
def emit_continue(self):
if not self.startlooplabel:
- raise ThrowError(W_String(u'Continue outside loop'))
+ raise ThrowException(W_String(u'Continue outside loop'))
self.emit('JUMP', self.startlooplabel[-1])
def emit(self, operation, *args):
More information about the Pypy-commit
mailing list