Author: Stephan <[email protected]>
Branch:
Changeset: r237:6b6a8dbf07c7
Date: 2012-06-02 10:33 +0200
http://bitbucket.org/pypy/lang-js/changeset/6b6a8dbf07c7/
Log: 11.3.1
diff --git a/js/builtins_boolean.py b/js/builtins_boolean.py
--- a/js/builtins_boolean.py
+++ b/js/builtins_boolean.py
@@ -59,4 +59,4 @@
else:
raise JsTypeError()
- return this.ToBoolean()
+ return b
diff --git a/js/builtins_global.py b/js/builtins_global.py
--- a/js/builtins_global.py
+++ b/js/builtins_global.py
@@ -269,7 +269,6 @@
symbol_map = ast.symbol_map
code = ast_to_bytecode(ast, symbol_map)
- code.unpop()
f = JsEvalCode(code)
calling_context = ctx._calling_context_
diff --git a/js/operations.py b/js/operations.py
--- a/js/operations.py
+++ b/js/operations.py
@@ -150,6 +150,8 @@
if self.has_operation():
self.left.emit(bytecode)
if self.post_operation():
+ # Force ToNumber
+ bytecode.emit('UPLUS')
bytecode.emit('DUP')
self.right.emit(bytecode)
self.emit_operation(bytecode)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit