# Bug Report ### π Search Terms generator iterator throw ### π Version & Regression Information - This is the behavior in every version I tried. ### β― Playground Link [Playground link with relevant code](https://www.typescriptlang.org/zh/play?strict=false&noImplicitAny=false&strictNullChecks=false&strictFunctionTypes=false&strictPropertyInitialization=false&strictBindCallApply=false&noImplicitThis=false&declaration=false&target=1&ts=4.1.5&filetype=ts#code/GYVwdgxgLglg9mAVAAgOYFMwAoCUyDeAUMicgJ4zoA2AJsgIwDchAvoYQG4CGATmsgF40mXM2590ADwjoADrASDkYdAHdkAUR484PLACJwACy5gaVdHSkz58MPpzMoPMgWKlUAOihGdqrNZyCmCOrMgQXFAQRsgB2nhEpOEIAM5wFp5UcKhxPKEsQA) ### π» Code ```ts function* gen() { yield 1; } var g = gen(); var exception = new Error("unhandled exception"); try { g.throw(exception); } catch (err) { console.log(err); } ``` ### π Actual behavior ```ts ``` ### π Expected behavior ``` Error: unhandled exception ```