Legacy generator support has been removed

Published: | Categories: JavaScript


The support for the non-standard generators, introduced with JavaScript 1.7 and deprecated since Firefox 57, has been removed with Firefox 58. This includes the StopIteration object, Function.prototype.isGenerator method, legacy generator function statement, legacy generator function expression and legacy generator objects.

The legacy iterator protocol support has already been removed with Firefox 57. Learn about the standard iterators and generators for the alternatives.