Functions to work with JavaScript generators.