{"size": 566, "ext": "js", "max_stars_repo_path": "js-test-suite/testsuite/ee22a60318455cd9ff6d111eeed180f4.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/ee22a60318455cd9ff6d111eeed180f4.js", "max_issues_repo_name": "hao-wang/Montage", "max_issues_repo_issues_event_min_datetime": "2015-12-07T12:18:43.000Z", "max_issues_repo_issues_event_max_datetime": "2016-07-04T20:45:33.000Z", "max_forks_repo_path": "implementation-contributed/javascriptcore/stress/sink-object-past-invalid-check-sneakier.js", "max_forks_repo_name": "edgemaster/test262", "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": 2, "max_forks_count": 1, "avg_line_length": 17.1515151515, "max_line_length": 50, "alphanum_fraction": 0.5053003534}
function bar(o, p) {
    if (p)
        return +o.f;
    return 42;
}

function foo(p, q) {
    var result = 0;
    var o = {valueOf: function() { result = 1; }};
    var o2 = {f: o};
    if (p)
        bar(o2, q);
    return result;
}

noInline(foo);

foo(true, false);

for (var i = 0; i < 10000; ++i)
    bar({f:42}, true);

for (var i = 0; i < 10000; ++i) {
    var result = foo(false, true);
    if (result !== 0)
        throw "Error: bad result: " + result;
}

var result = foo(true, true);
if (result !== 1)
    throw "Error: bad result at end: " + result;

