mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
610 B
TypeScript
29 lines
610 B
TypeScript
//// [tests/cases/compiler/argumentsAsPropertyName2.ts] ////
|
|
|
|
//// [argumentsAsPropertyName2.ts]
|
|
// target: es5
|
|
|
|
function foo() {
|
|
for (let x = 0; x < 1; ++x) {
|
|
let i : number;
|
|
[].forEach(function () { i });
|
|
({ arguments: 0 });
|
|
({ arguments });
|
|
({ arguments: arguments });
|
|
}
|
|
}
|
|
|
|
|
|
//// [argumentsAsPropertyName2.js]
|
|
"use strict";
|
|
// target: es5
|
|
function foo() {
|
|
for (let x = 0; x < 1; ++x) {
|
|
let i;
|
|
[].forEach(function () { i; });
|
|
({ arguments: 0 });
|
|
({ arguments });
|
|
({ arguments: arguments });
|
|
}
|
|
}
|