Two problems are fixed: * `isArgumentsLocalBinding` did only `PropertyAccessExpression`, now it's also doing `PropertyAssignment` (doesn't affect other files, since it's only used in the emitter). * `visitShorthandPropertyAssignment` should call `visitIdentifier` on the synthesized id. (For completion it might be better to make it visit the the original?) Fixes #38594.
12 lines
238 B
TypeScript
12 lines
238 B
TypeScript
// target: es5
|
|
|
|
function foo() {
|
|
for (let x = 0; x < 1; ++x) {
|
|
let i : number;
|
|
[].forEach(function () { i });
|
|
({ arguments: 0 });
|
|
({ arguments });
|
|
({ arguments: arguments });
|
|
}
|
|
}
|