This repository was archived by the owner on Jan 19, 2019. It is now read-only.
File tree 6 files changed +234
-8
lines changed
experimentalAsyncIteration
experimentalObjectRestSpread
6 files changed +234
-8
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ "type" : "Program" ,
3
+ "range" : [
4
+ 0 ,
5
+ 26
6
+ ] ,
7
+ "loc" : {
8
+ "start" : {
9
+ "line" : 1 ,
10
+ "column" : 0
11
+ } ,
12
+ "end" : {
13
+ "line" : 3 ,
14
+ "column" : 1
15
+ }
16
+ } ,
17
+ "body" : [
18
+ {
19
+ "type" : "FunctionDeclaration" ,
20
+ "range" : [
21
+ 0 ,
22
+ 26
23
+ ] ,
24
+ "loc" : {
25
+ "start" : {
26
+ "line" : 1 ,
27
+ "column" : 0
28
+ } ,
29
+ "end" : {
30
+ "line" : 3 ,
31
+ "column" : 1
32
+ }
33
+ } ,
34
+ "id" : {
35
+ "type" : "Identifier" ,
36
+ "range" : [
37
+ 16 ,
38
+ 19
39
+ ] ,
40
+ "loc" : {
41
+ "start" : {
42
+ "line" : 1 ,
43
+ "column" : 16
44
+ } ,
45
+ "end" : {
46
+ "line" : 1 ,
47
+ "column" : 19
48
+ }
49
+ } ,
50
+ "name" : "foo"
51
+ } ,
52
+ "generator" : true ,
53
+ "expression" : false ,
54
+ "async" : true ,
55
+ "params" : [ ] ,
56
+ "body" : {
57
+ "type" : "BlockStatement" ,
58
+ "range" : [
59
+ 22 ,
60
+ 26
61
+ ] ,
62
+ "loc" : {
63
+ "start" : {
64
+ "line" : 1 ,
65
+ "column" : 22
66
+ } ,
67
+ "end" : {
68
+ "line" : 3 ,
69
+ "column" : 1
70
+ }
71
+ } ,
72
+ "body" : [ ]
73
+ }
74
+ }
75
+ ] ,
76
+ "sourceType" : "script" ,
77
+ "tokens" : [
78
+ {
79
+ "type" : "Identifier" ,
80
+ "value" : "async" ,
81
+ "range" : [
82
+ 0 ,
83
+ 5
84
+ ] ,
85
+ "loc" : {
86
+ "start" : {
87
+ "line" : 1 ,
88
+ "column" : 0
89
+ } ,
90
+ "end" : {
91
+ "line" : 1 ,
92
+ "column" : 5
93
+ }
94
+ }
95
+ } ,
96
+ {
97
+ "type" : "Keyword" ,
98
+ "value" : "function" ,
99
+ "range" : [
100
+ 6 ,
101
+ 14
102
+ ] ,
103
+ "loc" : {
104
+ "start" : {
105
+ "line" : 1 ,
106
+ "column" : 6
107
+ } ,
108
+ "end" : {
109
+ "line" : 1 ,
110
+ "column" : 14
111
+ }
112
+ }
113
+ } ,
114
+ {
115
+ "type" : "Punctuator" ,
116
+ "value" : "*" ,
117
+ "range" : [
118
+ 14 ,
119
+ 15
120
+ ] ,
121
+ "loc" : {
122
+ "start" : {
123
+ "line" : 1 ,
124
+ "column" : 14
125
+ } ,
126
+ "end" : {
127
+ "line" : 1 ,
128
+ "column" : 15
129
+ }
130
+ }
131
+ } ,
132
+ {
133
+ "type" : "Identifier" ,
134
+ "value" : "foo" ,
135
+ "range" : [
136
+ 16 ,
137
+ 19
138
+ ] ,
139
+ "loc" : {
140
+ "start" : {
141
+ "line" : 1 ,
142
+ "column" : 16
143
+ } ,
144
+ "end" : {
145
+ "line" : 1 ,
146
+ "column" : 19
147
+ }
148
+ }
149
+ } ,
150
+ {
151
+ "type" : "Punctuator" ,
152
+ "value" : "(" ,
153
+ "range" : [
154
+ 19 ,
155
+ 20
156
+ ] ,
157
+ "loc" : {
158
+ "start" : {
159
+ "line" : 1 ,
160
+ "column" : 19
161
+ } ,
162
+ "end" : {
163
+ "line" : 1 ,
164
+ "column" : 20
165
+ }
166
+ }
167
+ } ,
168
+ {
169
+ "type" : "Punctuator" ,
170
+ "value" : ")" ,
171
+ "range" : [
172
+ 20 ,
173
+ 21
174
+ ] ,
175
+ "loc" : {
176
+ "start" : {
177
+ "line" : 1 ,
178
+ "column" : 20
179
+ } ,
180
+ "end" : {
181
+ "line" : 1 ,
182
+ "column" : 21
183
+ }
184
+ }
185
+ } ,
186
+ {
187
+ "type" : "Punctuator" ,
188
+ "value" : "{" ,
189
+ "range" : [
190
+ 22 ,
191
+ 23
192
+ ] ,
193
+ "loc" : {
194
+ "start" : {
195
+ "line" : 1 ,
196
+ "column" : 22
197
+ } ,
198
+ "end" : {
199
+ "line" : 1 ,
200
+ "column" : 23
201
+ }
202
+ }
203
+ } ,
204
+ {
205
+ "type" : "Punctuator" ,
206
+ "value" : "}" ,
207
+ "range" : [
208
+ 25 ,
209
+ 26
210
+ ] ,
211
+ "loc" : {
212
+ "start" : {
213
+ "line" : 3 ,
214
+ "column" : 0
215
+ } ,
216
+ "end" : {
217
+ "line" : 3 ,
218
+ "column" : 1
219
+ }
220
+ }
221
+ }
222
+ ]
223
+ } ;
Original file line number Diff line number Diff line change
1
+ async function * foo ( ) {
2
+
3
+ }
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ module.exports = {
326
326
"kind" : "init"
327
327
} ,
328
328
{
329
- "type" : "ExperimentalSpreadProperty " ,
329
+ "type" : "SpreadElement " ,
330
330
"loc" : {
331
331
"start" : {
332
332
"line" : 8 ,
@@ -856,4 +856,4 @@ module.exports = {
856
856
]
857
857
}
858
858
]
859
- } ;
859
+ } ;
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ module.exports = {
326
326
"kind" : "init"
327
327
} ,
328
328
{
329
- "type" : "ExperimentalSpreadProperty " ,
329
+ "type" : "SpreadElement " ,
330
330
"loc" : {
331
331
"start" : {
332
332
"line" : 8 ,
@@ -784,4 +784,4 @@ module.exports = {
784
784
]
785
785
}
786
786
]
787
- } ;
787
+ } ;
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ module.exports = {
269
269
"kind" : "init"
270
270
} ,
271
271
{
272
- "type" : "ExperimentalSpreadProperty " ,
272
+ "type" : "SpreadElement " ,
273
273
"loc" : {
274
274
"start" : {
275
275
"line" : 7 ,
@@ -304,7 +304,7 @@ module.exports = {
304
304
}
305
305
} ,
306
306
{
307
- "type" : "ExperimentalSpreadProperty " ,
307
+ "type" : "SpreadElement " ,
308
308
"loc" : {
309
309
"start" : {
310
310
"line" : 8 ,
@@ -744,4 +744,4 @@ module.exports = {
744
744
]
745
745
}
746
746
]
747
- } ;
747
+ } ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ var testFiles = shelljs.find(FIXTURES_DIR).filter(function(filename) {
41
41
} ) . map ( function ( filename ) {
42
42
return filename . substring ( FIXTURES_DIR . length - 1 , filename . length - 7 ) ; // strip off ".src.js"
43
43
} ) . filter ( function ( filename ) {
44
- return ! ( / e r r o r \- | i n v a l i d \- | g l o b a l R e t u r n | e x p e r i m e n t a l / . test ( filename ) ) ;
44
+ return ! ( / e r r o r \- | i n v a l i d \- | g l o b a l R e t u r n / . test ( filename ) ) ;
45
45
} ) ;
46
46
47
47
// var moduleTestFiles = testFiles.filter(function(filename) {
You can’t perform that action at this time.
0 commit comments