(args: string, code: string)
| 52 | } |
| 53 | |
| 54 | export function newFunction(args: string, code: string) { |
| 55 | try { |
| 56 | // eslint-disable-next-line no-new-func |
| 57 | return new Function(args, code); |
| 58 | } catch (e) { |
| 59 | logger.warn('Caught error, Cant init func'); |
| 60 | return null; |
| 61 | } |
| 62 | } |
no test coverage detected
searching dependent graphs…