Add support for ecmascript 6 generator functions