Back to Coffeescript

Throws a compiler error

documentation/sections/breaking_changes_bound_generator_functions.md

2.7.0493 B
Original Source

Bound generator functions

Bound generator functions, a.k.a. generator arrow functions, aren’t allowed in ECMAScript. You can write function* or =>, but not both. Therefore, CoffeeScript code like this:

coffee
f = => yield this
# Throws a compiler error

Needs to be rewritten the old-fashioned way:

codeFor('breaking_change_bound_generator_function')