Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
l.variants.forEach(args => it(args.join(' '), function() {
const cp = childProcess.fork(
path.resolve(toolsDir, 'build-langconv-fst.js'),
['-l'].concat(args),
{
cwd: fstDir,
}
);
return new Promise((resolve,reject) => {
cp.on('error', reject);
cp.on('exit', (code, signal) => {
if (code === 0) { resolve(); } else { reject(new Error("Bad exit code: " + code)); }
});
});
}));
});