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

fijal at codespeak.net fijal at codespeak.net
Sat Jun 7 01:37:40 CEST 2008


Author: fijal
Date: Sat Jun  7 01:37:39 2008
New Revision: 55642

Modified:
   pypy/branch/js-refactoring/pypy/lang/js/interpreter.py
Log:
Revert changes that prevented tests from running. We really need to make
all strings unicode.


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	Sat Jun  7 01:37:39 2008
@@ -224,7 +224,6 @@
             elif (i + 5 < lgt and strval[i + 1] == 'u' and
                   _ishex(strval[i + 2]) and _ishex(strval[i + 3]) and
                   _ishex(strval[i + 4]) and _ishex(strval[i + 5])):
-                raise ThrowException(W_String('not implemented'))
                 ch = unichr(int(strval[i+2:i+6], 16))
                 i += 5
         i += 1
@@ -368,7 +367,6 @@
         for arg in args:
             i = arg.ToInt32(ctx) % 65536 # XXX should be uint16
             if i > 255:
-                raise ThrowException(W_String('not implemented'))
                 temp.append(unichr(i))
             else:
                 temp.append(chr(i))



More information about the Pypy-commit mailing list