Skip to content

Commit

Permalink
Fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
esdmr committed Oct 6, 2023
1 parent 35b4005 commit 55253c5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/lib/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,19 +482,29 @@ export class SequencerContext extends EvalContext {
break;
}

case operationSet:
case operationAssert: {
case operationSet: {
this._assertInput(args[1], line);
this._assertOutput(args[2], line);
break;
}

case operationSetConstant:
case operationAssertConstant: {
case operationAssert: {
this._assertOutput(args[1], line);
this._assertOutput(args[2], line);
break;
}

case operationSetConstant: {
this._assertInput(args[1], line);
break;
}


Check failure on line 502 in src/lib/sequencer.ts

View workflow job for this annotation

GitHub Actions / Deploy

Delete `⏎`
case operationAssertConstant: {
this._assertOutput(args[1], line);
break;
}

case operationYieldInclude:
case operationYieldExclude: {
for (const tile of args.slice(1)) {
Expand Down

0 comments on commit 55253c5

Please sign in to comment.