TypeScript/test.js
bentongxyz 3939b38aa1
fixes #48630 array binding pattern with only OmittedExpressions does not check RHS of for-of loop (#49008)
* fix RHS of for..of loop not evaluated when LHS is array binding element with OmittedExpression

* expand widened type check

* add more test cases

* update code with suggestions

* Make test target es2015

Co-authored-by: Andrew Branch <andrew@wheream.io>
2022-05-31 11:06:19 -07:00

10 lines
236 B
TypeScript

"use strict";
exports.__esModule = true;
exports.main = void 0;
function main() {
for (var _i = 0, doesNotExist_1 = doesNotExist; _i < doesNotExist_1.length; _i++) {
var _a = doesNotExist_1[_i];
}
}
exports.main = main;