pub fn create_iterator<T: Generator>(
    env: napi_env,
    instance: napi_value,
    generator_ptr: *mut T
)