mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
improve some comments, remove unused properties from magic state shim in node API
This commit is contained in:
parent
53e69835ff
commit
4dafa50799
4 changed files with 16 additions and 15 deletions
|
@ -194,17 +194,14 @@ export function _wrap(OpClass) {
|
|||
const {transformedInput, transformedArgs} = prepareOp(opInstance, input, args);
|
||||
|
||||
// SPECIAL CASE for Magic. Other flowControl operations will
|
||||
// not work because the opList is not passed through.
|
||||
// not work because the opList is not passed in.
|
||||
if (isFlowControl) {
|
||||
opInstance.ingValues = transformedArgs;
|
||||
|
||||
const state = {
|
||||
"progress": 0,
|
||||
"dish": ensureIsDish(transformedInput),
|
||||
"opList": [opInstance],
|
||||
"numJumps": 0,
|
||||
"numRegisters": 0,
|
||||
"forkOffset": 0
|
||||
progress: 0,
|
||||
dish: ensureIsDish(transformedInput),
|
||||
opList: [opInstance],
|
||||
};
|
||||
|
||||
const updatedState = await opInstance.run(state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue