[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / default-proto-for-generator.js
1 function shouldBe(actual, expected) {
2     if (actual !== expected)
3         throw new Error('bad value: ' + actual);
4 }
5
6 function* generator() { }
7
8 var GeneratorPrototype = Object.getPrototypeOf(generator).prototype;
9 generator.prototype = null;
10
11 shouldBe(Object.getPrototypeOf(generator()), GeneratorPrototype);