Merge branch 'v9' of github.com:gchq/CyberChef into node-lib

This commit is contained in:
d98762625 2019-07-05 13:10:44 +01:00
commit 0de89f3145
28 changed files with 386 additions and 303 deletions

View file

@ -79,7 +79,8 @@ class NodeRecipe {
execute(dish) {
return this.opList.reduce((prev, curr) => {
// CASE where opList item is op and args
if (curr.hasOwnProperty("op") && curr.hasOwnProperty("args")) {
if (Object.prototype.hasOwnProperty.call(curr, "op") &&
Object.prototype.hasOwnProperty.call(curr, "args")) {
return curr.op(prev, curr.args);
}
// CASE opList item is just op.