michael@0: // Bug 880447 michael@0: michael@0: load(libdir + "asserts.js"); michael@0: michael@0: function f() { michael@0: yield yield 1; michael@0: } michael@0: michael@0: var g = f(); michael@0: assertEq(g.next(), 1); michael@0: assertEq(g.send("hello"), "hello"); michael@0: assertThrowsValue(() => g.next(), StopIteration);