Calling g.throw(e) on a closed generator g should throw e, not a new error.

According to 6 and 7 of https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator.prototype.throw, calling the throw method on a closed generator should throw the error passed in, not a new error.

Fixes #1025.

Depends on #1006.