blob: b77a88aacc592c7198840fde8a03a568c307a9bf [file] [log] [blame]
//@ runDefault
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
(function thingy() {
function bar()
{
return bar.caller;
}
class C {
*foo()
{
shouldBe(bar(), null);
}
}
new C().foo().next();
})();