Skip to content

Commit

Permalink
Add 'show' for 'Byte' on JavaScript (#752)
Browse files Browse the repository at this point in the history
Fixes #749
  • Loading branch information
CanCodes authored Dec 21, 2024
1 parent d705404 commit 9007b05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/common/effekt.effekt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ extern pure def show(value: Char): String =
"""

extern pure def show(value: Byte): String =
js "'' + ${value}"
llvm """
%z = call %Pos @c_bytearray_show_Byte(i8 ${value})
ret %Pos %z
Expand Down

0 comments on commit 9007b05

Please sign in to comment.