{"size": 553, "ext": "js", "max_stars_repo_path": "deps/mozjs/src/jit-test/tests/arguments/rest-debugger.js", "max_stars_repo_name": "ktrzeciaknubisa/jxcore-binary-packaging", "max_stars_repo_stars_event_min_datetime": "2015-02-11T04:34:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T14:21:47.000Z", "max_issues_repo_path": "deps/mozjs/src/jit-test/tests/arguments/rest-debugger.js", "max_issues_repo_name": "ktrzeciaknubisa/jxcore-binary-packaging", "max_issues_repo_issues_event_min_datetime": "2015-02-11T17:14:26.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-13T09:58:39.000Z", "max_forks_repo_path": "deps/mozjs/src/jit-test/tests/arguments/rest-debugger.js", "max_forks_repo_name": "ktrzeciaknubisa/jxcore-binary-packaging", "max_forks_repo_forks_event_min_datetime": "2015-02-12T13:45:46.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T05:28:05.000Z"}
{"max_stars_count": 2494, "max_issues_count": 685, "max_forks_count": 442, "avg_line_length": 32.5294117647, "max_line_length": 92, "alphanum_fraction": 0.6726943942}
var g = newGlobal();
g.eval("function f(...x) {}");
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
var fw = gw.getOwnPropertyDescriptor("f").value;
assertEq(fw.parameterNames.toString(), "x");

var g = newGlobal();
g.eval("function f(...rest) { debugger; }");
var dbg = Debugger(g);
dbg.onDebuggerStatement = function (frame) {
    var result = frame.eval("arguments");
    assertEq("throw" in result, true);
    var result2 = frame.evalWithBindings("exc instanceof SyntaxError", {exc: result.throw});
    assertEq(result2.return, true);
};
g.f();