Justin Ridgewell 34d73ebef0
Correct update expression Number coercion (#7766)
* Correct update expression Number coercion

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

* Fix systemjs update expression
2018-04-22 13:50:11 -04:00

28 lines
331 B
JavaScript

System.register([], function (_export, _context) {
"use strict";
var c;
function a() {
alert("a");
_export("c", +c + 1), c++;
}
_export("a", a);
function b() {
a();
}
return {
setters: [],
execute: function () {
_export("c", c = 5);
_export("c", c);
b();
}
};
});