test262/implementation-contributed/javascriptcore/stress/default-proto-for-async-generator.js
test262-automation 24f861721f [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: 8bfa53d50 targetRevisionAtLastExport: 8bc4e38a
2018-07-29 23:55:12 -04:00

12 lines
346 B
JavaScript

function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
async function* asyncGenerator() { }
var AsyncGeneratorPrototype = Object.getPrototypeOf(asyncGenerator).prototype;
asyncGenerator.prototype = null;
shouldBe(Object.getPrototypeOf(asyncGenerator()), AsyncGeneratorPrototype);