2015-02-27 01:53:25 +01:00
|
|
|
//// [downlevelLetConst18.ts]
|
|
|
|
'use strict'
|
|
|
|
|
|
|
|
for (let x; ;) {
|
|
|
|
function foo() { x };
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let x; ;) {
|
|
|
|
function foo() { x };
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let x; ;) {
|
|
|
|
(() => { x })();
|
|
|
|
}
|
|
|
|
|
|
|
|
for (const x = 1; ;) {
|
|
|
|
(() => { x })();
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let x; ;) {
|
|
|
|
({ foo() { x }})
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let x; ;) {
|
|
|
|
({ get foo() { return x } })
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let x; ;) {
|
|
|
|
({ set foo(v) { x } })
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [downlevelLetConst18.js]
|
|
|
|
'use strict';
|
|
|
|
for (var x = void 0;;) {
|
2015-03-09 02:23:23 +01:00
|
|
|
function foo() {
|
|
|
|
x;
|
|
|
|
}
|
2015-02-27 01:53:25 +01:00
|
|
|
;
|
|
|
|
}
|
2015-03-24 00:16:29 +01:00
|
|
|
for (var x = void 0;;) {
|
2015-03-09 02:23:23 +01:00
|
|
|
function foo() {
|
2015-03-24 00:16:29 +01:00
|
|
|
x;
|
2015-03-09 02:23:23 +01:00
|
|
|
}
|
2015-02-27 01:53:25 +01:00
|
|
|
;
|
|
|
|
}
|
2015-03-24 00:16:29 +01:00
|
|
|
for (var x = void 0;;) {
|
2015-03-09 02:23:23 +01:00
|
|
|
(function () {
|
2015-03-24 00:16:29 +01:00
|
|
|
x;
|
2015-03-09 02:23:23 +01:00
|
|
|
})();
|
2015-02-27 01:53:25 +01:00
|
|
|
}
|
2015-03-24 00:16:29 +01:00
|
|
|
for (var x = 1;;) {
|
2015-03-09 02:23:23 +01:00
|
|
|
(function () {
|
2015-03-24 00:16:29 +01:00
|
|
|
x;
|
2015-03-09 02:23:23 +01:00
|
|
|
})();
|
2015-02-27 01:53:25 +01:00
|
|
|
}
|
2015-03-24 00:16:29 +01:00
|
|
|
for (var x = void 0;;) {
|
2015-03-09 02:23:23 +01:00
|
|
|
({
|
|
|
|
foo: function () {
|
2015-03-24 00:16:29 +01:00
|
|
|
x;
|
2015-03-09 02:23:23 +01:00
|
|
|
}
|
|
|
|
});
|
2015-02-27 01:53:25 +01:00
|
|
|
}
|
2015-03-24 00:16:29 +01:00
|
|
|
for (var x = void 0;;) {
|
2015-03-09 02:23:23 +01:00
|
|
|
({
|
|
|
|
get foo() {
|
2015-03-24 00:16:29 +01:00
|
|
|
return x;
|
2015-03-09 02:23:23 +01:00
|
|
|
}
|
|
|
|
});
|
2015-02-27 01:53:25 +01:00
|
|
|
}
|
2015-03-24 00:16:29 +01:00
|
|
|
for (var x = void 0;;) {
|
2015-03-09 02:23:23 +01:00
|
|
|
({
|
|
|
|
set foo(v) {
|
2015-03-24 00:16:29 +01:00
|
|
|
x;
|
2015-03-09 02:23:23 +01:00
|
|
|
}
|
|
|
|
});
|
2015-02-27 01:53:25 +01:00
|
|
|
}
|