(job, i)
| 51 | }; |
| 52 | |
| 53 | const validateFunctionJob = (job, i) => { |
| 54 | const errors = []; |
| 55 | |
| 56 | const path = `(${job.toString()})()`; |
| 57 | // Can't be a built-in or bound function |
| 58 | if (path.includes('[native code]')) { |
| 59 | errors.push( |
| 60 | new Error(`Job #${i + 1} can't be a bound or built-in function`) |
| 61 | ); |
| 62 | } |
| 63 | |
| 64 | if (errors.length > 0) { |
| 65 | throw combineErrors(errors); |
| 66 | } |
| 67 | }; |
| 68 | |
| 69 | const validateJobPath = async (job, prefix, config) => { |
| 70 | const errors = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…