From 1760ab23053ccd9012a9b23bbaa904288d8aaa47 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Wed, 14 Feb 2018 17:00:14 +0000 Subject: [PATCH] Recipe errors are now ignored in the Magic operation --- src/core/lib/Magic.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/lib/Magic.js b/src/core/lib/Magic.js index ff28bb2b..2e288064 100644 --- a/src/core/lib/Magic.js +++ b/src/core/lib/Magic.js @@ -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(