Correct update expression Number coercion (#7766)

* Correct update expression Number coercion

You have to `ToNumber` whatever the `UpdateExpression` argument is.

* Fix systemjs update expression
This commit is contained in:
Justin Ridgewell
2018-04-22 13:50:11 -04:00
committed by GitHub
parent 890a45216f
commit 34d73ebef0
7 changed files with 40 additions and 28 deletions

View File

@@ -5,7 +5,7 @@ System.register([], function (_export, _context) {
function a() {
alert("a");
_export("c", c + 1), c++;
_export("c", +c + 1), c++;
}
_export("a", a);

View File

@@ -11,7 +11,7 @@ System.register([], function (_export, _context) {
_export("test", test = 5);
_export("test", test + 1), test++;
_export("test", +test + 1), test++;
(function () {
var test = 2;