File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,31 +169,12 @@ var Extractor = (function () {
169169 var syntax ;
170170 try {
171171 syntax = espree . parse ( src , {
172- tolerant : true ,
173172 attachComment : true ,
174173 loc : true ,
174+ ecmaVersion : 6 ,
175175 ecmaFeatures : {
176- arrowFunctions : true ,
177- blockBindings : true ,
178- destructuring : true ,
179- regexYFlag : true ,
180- regexUFlag : true ,
181- templateStrings : true ,
182- binaryLiterals : true ,
183- octalLiterals : true ,
184- unicodeCodePointEscapes : true ,
185- defaultParams : true ,
186- restParams : true ,
187- forOf : true ,
188- objectLiteralComputedProperties : true ,
189- objectLiteralShorthandMethods : true ,
190- objectLiteralShorthandProperties : true ,
191- objectLiteralDuplicateProperties : true ,
192- generators : true ,
193- spread : true ,
194- classes : true ,
195- modules : true ,
196176 jsx : true ,
177+ experimentalObjectRestSpread : true ,
197178 globalReturn : true
198179 }
199180 } ) ;
Original file line number Diff line number Diff line change 3939 "dependencies" : {
4040 "binary-search" : " ^1.2.0" ,
4141 "cheerio" : " ~0.19.0" ,
42- "espree" : " ^2 .0.0" ,
42+ "espree" : " ^3 .0.0" ,
4343 "lodash" : " ^4.0.0" ,
4444 "pofile" : " ~1.0.0"
4545 }
You can’t perform that action at this time.
0 commit comments