michael@0: var gen = (function () {yield})(); michael@0: var t = gen.throw; michael@0: try { michael@0: new t; michael@0: } catch (e) { michael@0: actual = "" + e; michael@0: } michael@0: assertEq(actual, "TypeError: t is not a constructor");