Skip to content

Commit

Permalink
fix: compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 25, 2024
1 parent b35ced1 commit bbc10d4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { AvmStateManager } from '../avm_state_manager.js';
import { Add, Mul, Sub } from './arithmetic.js';
import { And, Not, Or, Shl, Shr, Xor } from './bitwise.js';
import { Eq, Lt, Lte } from './comparators.js';
import { InternalCall, InternalCallStackEmptyError, InternalReturn, Jump, JumpI } from './control_flow.js';
import { InternalCall, InternalReturn, Jump, JumpI } from './control_flow.js';
import { InstructionExecutionError } from './instruction.js';
import { CMov, CalldataCopy, Cast, Mov, Set } from './memory.js';

describe('Control Flow Opcodes', () => {
Expand Down Expand Up @@ -111,7 +112,7 @@ describe('Control Flow Opcodes', () => {

it('Should error if Internal Return is called without a corresponding Internal Call', () => {
const returnInstruction = new InternalReturn();
expect(() => returnInstruction.execute(machineState, stateManager)).toThrow(InternalCallStackEmptyError);
expect(() => returnInstruction.execute(machineState, stateManager)).toThrow(InstructionExecutionError);
});

it('Should increment PC on All other Instructions', () => {
Expand Down

0 comments on commit bbc10d4

Please sign in to comment.