File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ const ERROR_REGEX_CONSTANT = (value) =>
17
17
const ERROR_REPLACER_FUNCTION = ( value ) =>
18
18
`something wrong with replacer function ${ value } ` ;
19
19
20
+
21
+ // TODO to make this method working better [improvement]
22
+ // 1. to handle a case when literal is false, it's very scary
23
+ // 2. we really need to be able to handle a situation when replacer isn't defined before (by different reasons)
24
+ // 3. does this function works fine with `components`
25
+ // 4. when something wrong - i want to have a better output about params that we passed
26
+
20
27
function objectBuilder ( constant , replacer , literal = false ) {
21
28
// TODO add typeof for checking replacer as a function
22
29
// console.log( typeof element.replacer === 'undefined' );
You can’t perform that action at this time.
0 commit comments