{"size": 1938, "ext": "js", "max_stars_repo_path": "crates/swc/tests/tsc-references/es6/destructuring/destructuringControlFlow/input.ts/es5.1.normal/output.js", "max_stars_repo_name": "ErDmKo/swc", "max_stars_repo_stars_event_min_datetime": "2021-11-25T03:19:38.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-25T03:19:38.000Z", "max_issues_repo_path": "tests/tsc-references/es6/destructuring/destructuringControlFlow/input.ts/es5.1.normal/output.js", "max_issues_repo_name": "sventschui/swc", "max_issues_repo_issues_event_min_datetime": "2022-02-15T07:39:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-15T07:39:07.000Z", "max_forks_repo_path": "tests/tsc-references/es6/destructuring/destructuringControlFlow/input.ts/es5.1.normal/output.js", "max_forks_repo_name": "sventschui/swc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 26.1891891892, "max_line_length": 91, "alphanum_fraction": 0.5020639835}
function _arrayWithHoles(arr) {
    if (Array.isArray(arr)) return arr;
}
function _iterableToArrayLimit(arr, i) {
    var _arr = [];
    var _n = true;
    var _d = false;
    var _e = undefined;
    try {
        for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){
            _arr.push(_s.value);
            if (i && _arr.length === i) break;
        }
    } catch (err) {
        _d = true;
        _e = err;
    } finally{
        try {
            if (!_n && _i["return"] != null) _i["return"]();
        } finally{
            if (_d) throw _e;
        }
    }
    return _arr;
}
function _nonIterableRest() {
    throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
function _slicedToArray(arr, i) {
    return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
}
// @strict: true
function f1(obj) {
    if (obj.a) {
        obj = {
        };
        var a1 = obj["a"]; // string | undefined
        var a2 = obj.a; // string | undefined
    }
}
function f2(obj) {
    var a0 = obj[0]; // number | null
    var a1 = obj[1]; // string | null
    var _obj = _slicedToArray(obj, 2), b0 = _obj[0], b1 = _obj[1];
    var ref;
    ref = obj, a0 = ref[0], a1 = ref[1], ref;
    if (obj[0] && obj[1]) {
        var c0 = obj[0]; // number
        var c1 = obj[1]; // string
        var _obj1 = _slicedToArray(obj, 2), d0 = _obj1[0], d1 = _obj1[1];
        var ref1;
        ref1 = obj, c0 = ref1[0], c1 = ref1[1], ref1;
    }
}
function f3(obj) {
    if (obj.a && obj.b) {
        var a = obj.a, b = obj.b; // number, string
        var ref;
        ref = obj, a = ref.a, b = ref.b, ref;
    }
}
function f4() {
    var x;
    x = 0..x; // Error
    var ref;
    ref = 0, x = ref["x"], ref; // Error
    var ref3;
    ref3 = 0, x = ref3["x" + ""], ref3; // Errpr
}
var ref2 = [
    "foo"
], key = ref2[0], value = ref2[1];
value.toUpperCase(); // Error
