Skip to content

Instantly share code, notes, and snippets.

View AsceticBoy's full-sized avatar

Ascetic AsceticBoy

  • Broada
  • Hangzhou, China
View GitHub Profile
@AsceticBoy
AsceticBoy / generator.js
Last active March 14, 2018 01:19
As for ECMAScript 6 Generator function, Can I toggle execute Permission like example
// How Can I return execute permission to 'generator_B'
function * generator_A() {
yield 'ga_1'
yield 'ga_2'
yield * generator_B()
yield 'ga_3'
yield 'ga_4'
}
function * generator_B() {
yield 'gb_1'