Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
matchedPaths.forEach(function(path) {
try {
var obs = matched.action.call(context, matchVirtualPathFormat(path, matched.virtualRunner), valueObject);
results[results.length] = {
obs: obs,
path: path
};
} catch (e) {
results[results.length] = {
obs: Observable.throw({message: e, $type: 'error'}),
path: path
};
}
});
}