mirror of
https://github.com/gchq/CyberChef
synced 2025-12-24 04:04:25 +00:00
Merge branch 'v9' of github.com:gchq/CyberChef into node-lib
This commit is contained in:
@@ -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