{"size": 451, "ext": "js", "max_stars_repo_path": "src/test/scripts/suite/regress/bug3282.js", "max_stars_repo_name": "mathiasbynens/es6draft", "max_stars_repo_stars_event_min_datetime": "2015-01-29T09:32:22.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-10T11:12:29.000Z", "max_issues_repo_path": "src/test/scripts/suite/regress/bug3282.js", "max_issues_repo_name": "mathiasbynens/es6draft", "max_issues_repo_issues_event_min_datetime": "2015-01-19T09:16:29.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-22T12:15:13.000Z", "max_forks_repo_path": "src/test/scripts/suite/regress/bug3282.js", "max_forks_repo_name": "mathiasbynens/es6draft", "max_forks_repo_forks_event_min_datetime": "2015-07-10T18:53:24.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T02:25:05.000Z"}
{"max_stars_count": 48, "max_issues_count": 26, "max_forks_count": 17, "avg_line_length": 23.7368421053, "max_line_length": 83, "alphanum_fraction": 0.7006651885}
/*
 * Copyright (c) André Bargull
 * Alle Rechte vorbehalten / All Rights Reserved.  Use is subject to license terms.
 *
 * <https://github.com/anba/es6draft>
 */
const {
  assertThrows, assertSyntaxError
} = Assert;

// 12.3.5.3 step 6: throw TypeError instead of ReferenceError
// https://bugs.ecmascript.org/show_bug.cgi?id=3282

assertSyntaxError(`
assertThrows(TypeError, () => {
  Object.setPrototypeOf(function(){ new super }, null)();
});
`);
