[webapi] Add usecase for Generators

=> Check that ES6 generator is supported.