UNPKG
escover
Version:
latest (6.5.2)
6.5.2
6.5.1
6.5.0
6.4.0
6.3.2
6.3.1
6.3.0
6.2.9
6.2.8
6.2.7
6.2.6
6.2.5
6.2.4
6.2.3
6.2.2
6.2.1
6.2.0
6.1.2
6.1.1
6.1.0
6.0.1
6.0.0
5.0.1
5.0.0
4.3.2
4.3.1
4.3.0
4.2.0
4.1.0
4.0.1
4.0.0
3.8.1
3.8.0
3.7.0
3.6.1
3.6.0
3.5.2
3.5.1
3.5.0
3.4.0
3.3.2
3.3.1
3.3.0
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
2.5.3
2.5.2
2.5.1
2.5.0
2.4.0
2.3.1
2.3.0
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.20.2
1.20.1
1.20.0
1.19.0
1.18.0
1.17.2
1.17.1
1.17.0
1.16.0
1.15.0
1.14.0
1.13.0
1.12.0
1.11.0
1.10.0
1.9.0
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.0
1.5.2
1.5.1
1.5.0
1.4.1
1.4.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Coverage for EcmaScript Modules
github.com/coderaiser/escover
coderaiser/escover
escover
/
lib
/
instrument
/
plugin-mark
/
arrow.js
13 lines
(9 loc)
•
243 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{types}
from
'putout'
;
const
{
SequenceExpression
} = types;
export
const
addMarkToArrowFunction
= (
path, lineNode
) => {
const
{node} = path; node.
body
=
SequenceExpression
([ lineNode, node.
body
, ]); };