1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-04 18:19:15 +02:00

Add some debug statements for unsupported RarVM functionality

This commit is contained in:
codedread 2017-02-18 02:14:31 -08:00
parent 213b78cb14
commit fb1a94286a

View file

@ -565,6 +565,10 @@ RarVM.prototype.executeCode = function(preparedCodes) {
case VM_Commands.VM_STANDARD: case VM_Commands.VM_STANDARD:
this.executeStandardFilter(cmd.Op1.Data); this.executeStandardFilter(cmd.Op1.Data);
break; break;
default:
console.error('RarVM OpCode not supported: ' + getDebugString(VM_Commands, cmd.OpCode));
break;
} // switch (cmd.OpCode) } // switch (cmd.OpCode)
codeIndex++; codeIndex++;
cmd = preparedCodes[codeIndex]; cmd = preparedCodes[codeIndex];
@ -601,6 +605,10 @@ RarVM.prototype.executeStandardFilter = function(filterType) {
} }
break; break;
default:
console.error('RarVM Standard Filter not supported: ' + getDebugString(VM_StandardFilters, filterType));
break;
} }
}; };