1
- var _SAGA_LOCATION = require ( ' redux-saga' ) . SAGA_LOCATION
1
+ var _SAGA_LOCATION = require ( " redux-saga" ) . SAGA_LOCATION ;
2
2
3
3
var _marked =
4
- /*#__PURE__*/
5
- regeneratorRuntime . mark ( test1 ) ,
6
- _marked2 =
7
- /*#__PURE__*/
8
- regeneratorRuntime . mark ( test2 )
4
+ /*#__PURE__*/
5
+ regeneratorRuntime . mark ( test1 ) ,
6
+ _marked2 =
7
+ /*#__PURE__*/
8
+ regeneratorRuntime . mark ( test2 ) ;
9
9
10
10
function test1 ( ) {
11
- return regeneratorRuntime . wrap (
12
- function test1$ ( _context ) {
13
- while ( 1 ) {
14
- switch ( ( _context . prev = _context . next ) ) {
15
- case 0 :
16
- _context . next = 2
17
- return ( function reduxSagaSource ( ) {
18
- var res = foo ( 1 , 2 , 3 )
19
- res [ _SAGA_LOCATION ] = {
20
- fileName : '{{filename}}' ,
21
- lineNumber : 2 ,
22
- code : 'foo(1, 2, 3)' ,
23
- }
24
- return res
25
- } ) ( )
11
+ return regeneratorRuntime . wrap ( function test1$ ( _context ) {
12
+ while ( 1 ) {
13
+ switch ( _context . prev = _context . next ) {
14
+ case 0 :
15
+ _context . next = 2 ;
16
+ return function reduxSagaSource ( ) {
17
+ var res = foo ( 1 , 2 , 3 ) ;
18
+ res [ _SAGA_LOCATION ] = {
19
+ fileName : "/Users/mateuszburzynski/Desktop/redux-saga/packages/babel-plugin-redux-saga/test/fixtures/declaration-regenerator/source.js" ,
20
+ lineNumber : 2 ,
21
+ code : "foo(1, 2, 3)"
22
+ } ;
23
+ return res ;
24
+ } ( ) ;
26
25
27
- case 2 :
28
- case 'end' :
29
- return _context . stop ( )
30
- }
26
+ case 2 :
27
+ case "end" :
28
+ return _context . stop ( ) ;
31
29
}
32
- } ,
33
- _marked ,
34
- this ,
35
- )
30
+ }
31
+ } , _marked , this ) ;
36
32
}
37
33
38
34
test1 [ _SAGA_LOCATION ] = {
39
- fileName : '{{filename}}' ,
40
- lineNumber : 1 ,
41
- }
35
+ fileName : "/Users/mateuszburzynski/Desktop/redux-saga/packages/babel-plugin-redux-saga/test/fixtures/declaration-regenerator/source.js" ,
36
+ lineNumber : 1
37
+ } ;
42
38
43
39
function test2 ( ) {
44
- return regeneratorRuntime . wrap (
45
- function test2$ ( _context2 ) {
46
- while ( 1 ) {
47
- switch ( ( _context2 . prev = _context2 . next ) ) {
48
- case 0 :
49
- _context2 . next = 2
50
- return 2
40
+ return regeneratorRuntime . wrap ( function test2$ ( _context2 ) {
41
+ while ( 1 ) {
42
+ switch ( _context2 . prev = _context2 . next ) {
43
+ case 0 :
44
+ _context2 . next = 2 ;
45
+ return 2 ;
51
46
52
- case 2 :
53
- case 'end' :
54
- return _context2 . stop ( )
55
- }
47
+ case 2 :
48
+ case "end" :
49
+ return _context2 . stop ( ) ;
56
50
}
57
- } ,
58
- _marked2 ,
59
- this ,
60
- )
51
+ }
52
+ } , _marked2 , this ) ;
61
53
}
62
54
63
55
test2 [ _SAGA_LOCATION ] = {
64
- fileName : '{{filename}}' ,
65
- lineNumber : 5 ,
66
- }
56
+ fileName : "/Users/mateuszburzynski/Desktop/redux-saga/packages/babel-plugin-redux-saga/test/fixtures/declaration-regenerator/source.js" ,
57
+ lineNumber : 5
58
+ } ;
0 commit comments