Skip to content

Commit

Permalink
FIX: regression (code reduced too much)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jun 29, 2023
1 parent a14bf53 commit 5fdac4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mezz/sys-codec.reb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ encode: function [
do-codec cod/entry 'encode data
][
either function? try [:cod/encode][
cod/encode/:as :options
;@@ cannot use dynamic refinement, because some codecs don't have /as
either as [
cod/encode/as :data :options
][ cod/encode :data ]
][
cause-error 'internal 'not-done type
]
Expand Down

0 comments on commit 5fdac4c

Please sign in to comment.