2015-03-03 23:45:16 +01:00
|
|
|
//// [ES5For-of9.ts]
|
|
|
|
function foo() {
|
|
|
|
return { x: 0 };
|
|
|
|
}
|
|
|
|
for (foo().x of []) {
|
|
|
|
for (foo().x of []) {
|
|
|
|
var p = foo().x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [ES5For-of9.js]
|
|
|
|
function foo() {
|
2015-03-09 21:32:02 +01:00
|
|
|
return {
|
|
|
|
x: 0
|
|
|
|
};
|
2015-03-03 23:45:16 +01:00
|
|
|
}
|
|
|
|
for (var _i = 0, _a = []; _i < _a.length; _i++) {
|
|
|
|
foo().x = _a[_i];
|
2015-03-05 00:50:43 +01:00
|
|
|
for (var _b = 0, _c = []; _b < _c.length; _b++) {
|
|
|
|
foo().x = _c[_b];
|
2015-03-03 23:45:16 +01:00
|
|
|
var p = foo().x;
|
|
|
|
}
|
|
|
|
}
|