MCPcopy
hub / github.com/breejs/bree / validateFunctionJob

Function validateFunctionJob

src/job-validator.js:53–67  ·  view source on GitHub ↗
(job, i)

Source from the content-addressed store, hash-verified

51};
52
53const 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
69const validateJobPath = async (job, prefix, config) => {
70 const errors = [];

Callers 1

validateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…