Closed dk00 closed 7 years ago
Merging #8 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #8 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 2 2
Lines 388 394 +6
Branches 169 170 +1
=====================================
+ Hits 388 394 +6
Impacted Files | Coverage Δ | |
---|---|---|
src/convert.ls | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 37e2435...b62b039. Read the comment docs.
Merging #8 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #8 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 2 2
Lines 388 394 +6
Branches 169 170 +1
=====================================
+ Hits 388 394 +6
Impacted Files | Coverage Δ | |
---|---|---|
src/convert.ls | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 37e2435...b62b039. Read the comment docs.
Merging #8 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #8 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 2 2
Lines 388 397 +9
Branches 169 172 +3
=====================================
+ Hits 388 397 +9
Impacted Files | Coverage Δ | |
---|---|---|
src/convert.ls | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 37e2435...346d99a. Read the comment docs.
bind
is used to convert bound generator functions.
~function gen a
yield a @
let gen;
gen = function* (a) {
return yield a(this);
}.bind(this);
Fix #5.
yield
implicitly marks functions as generator likeawait
does,->*
arefunction*
are also supported.This also enables async generator functions, but not bound generator
~>*
.Bound functions
~>
are converted to arrow functions=>
, but arrow functions cannot be used as generators directly.There various options to work around:
0. Use additional variables to bind
this
1. Wrap with IIFE
2. Use bind
Laugh for 0, hooray for 1, heart for 2 and comment for your ideas.