blob: c1c5cd08e122dd195b1c40c5c28ab84afdbd009f [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function* generator() { }
var GeneratorPrototype = Object.getPrototypeOf(generator).prototype;
generator.prototype = null;
shouldBe(Object.getPrototypeOf(generator()), GeneratorPrototype);