File tree Expand file tree Collapse file tree
transforms/helpers/eo-prop/private/computed Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,18 +60,12 @@ export default class EOComputedObjectExpressionProp extends AbstractEOComputedPr
6060 lastArg && lastArg . type === 'ObjectExpression' ,
6161 'expected lastArg to be a ObjectExpression'
6262 ) ;
63- // FIXME: In this case, existing decorators should probably fail validation
6463 const classMethods = lastArg . properties . map ( ( property ) => {
6564 assert ( AST . isEOMethod ( property ) , 'expected EOMethod' ) ;
66- // FIXME: Is `init` valid here? Seems wrong.
6765 assert (
68- ( [ 'init' , 'get' , 'set' ] as const ) . includes (
69- property . key . name as 'init' | 'get' | 'set'
70- )
66+ ( [ 'get' , 'set' ] as const ) . includes ( property . key . name as 'get' | 'set' )
7167 ) ;
72- const rawKind = property . key . name as 'init' | 'get' | 'set' ;
73- const kind = rawKind === 'init' ? 'method' : rawKind ;
74-
68+ const kind = property . key . name as 'get' | 'set' ;
7569 const key = this . key ;
7670
7771 const params = [ ...property . params ] ;
You can’t perform that action at this time.
0 commit comments