This is what CreateDynamicFunction calls it.
This applies a simple transformation, and adds a simple wrapper that translates the generator interface to the async function interface.