Skip to content

Commit 8b63ce5

Browse files
cknittclaude
andauthored
Type the runtime's code point lookup as int
`Primitive_string_extern.getChar` returned `option<char>`; it returns `option<int>` now that `char` is an alias of `int`, which leaves no use of `char` in the runtime. The generated JavaScript is unchanged. Area: runtime Output: unchanged Tests: none, because the type is an alias of the old one and the output is unchanged Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JALXUyHhkDqzcB3WuW9Svo Signed-off-by: Christoph Knittel <ck@cca.io>
1 parent 4bf548b commit 8b63ce5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/@rescript/runtime/Primitive_string_extern.res‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
external length: string => int = "%string_length"
88

9-
@send external getChar: (string, int) => option<char> = "codePointAt"
9+
@send external getChar: (string, int) => option<int> = "codePointAt"

0 commit comments

Comments
 (0)