blob: 2696ae5fd19f9d8c8b08de6b0ed6a5bae75afddf [file] [log] [blame]
utatane.tea@gmail.comfdd9bf42015-12-02 03:16:28 +00001function shouldBe(actual, expected) {
2 if (actual !== expected)
3 throw new Error('bad value: ' + actual);
4}
5var global = (new Function("return this"))();
6shouldBe(typeof global.GeneratorFunction, 'undefined');
7var generatorFunctionConstructor = (function *() { }).constructor;
8shouldBe(generatorFunctionConstructor.__proto__, Function);
9shouldBe(generatorFunctionConstructor.prototype.constructor, generatorFunctionConstructor);