Add generator construction similar to v8 new yield