Skip to content

Commit

Permalink
todo: what about Stack drop with custom types?
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Jul 11, 2024
1 parent 42fb9ef commit 03e4b80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/orb/stack.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defmodule Orb.Stack do
raise ArgumentError,
message: "Cannot drop instruction pushing nothing to the stack."

# TODO: what about custom types?
{nil, type} when is_atom(type) ->
%__MODULE__{
instruction: instruction,
Expand Down

0 comments on commit 03e4b80

Please sign in to comment.