Browse Source

Recipe errors are now ignored in the Magic operation

n1474335 7 years ago
parent
commit
1760ab2305
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/core/lib/Magic.js

+ 3 - 1
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(