{"size": 1065, "ext": "js", "max_stars_repo_path": "js-test-suite/testsuite/3358172e3832854b7f3a92188ebfae9a.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/3358172e3832854b7f3a92188ebfae9a.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/3358172e3832854b7f3a92188ebfae9a.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": 29.5833333333, "max_line_length": 80, "alphanum_fraction": 0.6431924883}
load("201224b0d1c296b45befd2285e95dd42.js");
// Test interactions between ES6 generators and not-yet-standard
// features.

function assertSyntaxError(str) {
    var msg;
    var evil = eval;
    try {
        // Non-direct eval.
        evil(str);
    } catch (exc) {
        if (exc instanceof SyntaxError)
            return;
        msg = "Assertion failed: expected SyntaxError, got " + exc;
    }
    if (msg === undefined)
        msg = "Assertion failed: expected SyntaxError, but no exception thrown";
    throw new Error(msg + " - " + str);
}

// Destructuring binding.
assertSyntaxError("function* f(x = yield) {}");
assertSyntaxError("function* f(x = yield 17) {}");
assertSyntaxError("function* f([yield]) {}");
assertSyntaxError("function* f({ yield }) {}");
assertSyntaxError("function* f(...yield) {}");

// For each.
assertSyntaxError("for yield");
assertSyntaxError("for yield (;;) {}");
assertSyntaxError("for yield (x of y) {}");
assertSyntaxError("for yield (var i in o) {}");

// Expression bodies.
assertSyntaxError("function* f() yield 7");
