Merge branch 'v9' of github.com:gchq/CyberChef into node-lib
This commit is contained in:
commit
0de89f3145
28 files changed
+386
-303
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user