{"size": 685, "ext": "js", "max_stars_repo_path": "js-test-suite/testsuite/ae7ca721953bebc6e814c651a0786102.js", "max_stars_repo_name": "hao-wang/Montage", "max_stars_repo_stars_event_min_datetime": "2020-03-23T12:53:10.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-11T02:31:50.000Z", "max_issues_repo_path": "js-test-suite/testsuite/ae7ca721953bebc6e814c651a0786102.js", "max_issues_repo_name": "hao-wang/Montage", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js-test-suite/testsuite/ae7ca721953bebc6e814c651a0786102.js", "max_forks_repo_name": "hao-wang/Montage", "max_forks_repo_forks_event_min_datetime": "2020-08-17T14:06:59.000Z", "max_forks_repo_forks_event_max_datetime": "2020-08-17T14:06:59.000Z"}
{"max_stars_count": 16, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 28.5416666667, "max_line_length": 78, "alphanum_fraction": 0.5854014599}
load("201224b0d1c296b45befd2285e95dd42.js");
// |jit-test| --ion-offthread-compile=off;

// We disable any off-main thread compilation, and set a definite trigger for
// Ion compilation, such that we can garantee that we would OSR into the inner
// loop before we reach the end of the loop.
setJitCompilerOption("ion.warmup.trigger", 30);

function f (n) {
    while (!inIon()) {
        var inner = 0;
        let x = {};
        for (var i = 0; i < n; i++) {
            inner += inIon() == true ? 1 : 0;
            if (inner <= 1)
                bailout();
        }
        assertEq(inner != 1, true);
    }
}

// Iterate enough to ensure that we OSR in this inner loop.
f(300);
