Formally disallow flowcontrol operations from being used in bake recipes

This commit is contained in:
d98762625 2020-06-05 14:42:20 +01:00
parent 939208903a
commit 53e69835ff
4 changed files with 81 additions and 74 deletions

View file

@ -100,8 +100,7 @@ Object.keys(operations).forEach((op) => {
code += `];
const prebaked = bake(operations);
chef.bake = prebaked;
chef.bake = bake;
export default chef;
// Operations as top level exports.
@ -114,7 +113,7 @@ Object.keys(operations).forEach((op) => {
});
code += " NodeDish as Dish,\n";
code += " prebaked as bake,\n";
code += " bake,\n";
code += " help,\n";
code += " OperationError,\n";
code += " ExcludedOperationError,\n";