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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user