Recipe errors are now ignored in the Magic operation

This commit is contained in:
n1474335 2018-02-14 17:00:14 +00:00
parent 99ade42e9a
commit 1760ab2305

View File

@ -244,7 +244,9 @@ class Magic {
if (ENVIRONMENT_IS_WORKER()) self.loadRequiredModules([opConfig]);
const recipe = new Recipe([opConfig]);
await recipe.execute(dish, 0);
try {
await recipe.execute(dish, 0);
} catch (err) {} // Ignore errors
const magic = new Magic(dish.get(Dish.ARRAY_BUFFER), this.opPatterns),
speculativeResults = await magic.speculativeExecution(