Skip to content

Conversation

@hra687261
Copy link
Collaborator

The purpose of this PR is to update the test suite and track/fix the various errors that happen after this update.
This was done while I was working on #851

@hra687261 hra687261 force-pushed the update_testsuite branch 2 times, most recently from 36a7dc1 to 9eca53f Compare December 11, 2025 23:44
@redianthus
Copy link
Member

@hra687261, please tell me when I should have a look at this one (I'm waiting as long as it is marked as draft, just telling so that we don't enter a deadlock where I wait for you to mark it as ready and where you wait my review before marking as ready :-))

@hra687261
Copy link
Collaborator Author

When it's no longer a marked as a draft, I'll let you know :)

@hra687261 hra687261 force-pushed the update_testsuite branch 2 times, most recently from ba6a245 to 709ed97 Compare December 21, 2025 01:32
let has_def_value =
match ty with Text.Ref_type (No_null, _) -> false | _ -> true
in
if (not init) && not has_def_value then Error (`Uninitialized_local id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe do this in validate_binary instead so that it is checked for binary modules too

begin match known_globals with
| Some n when idx >= n -> Error (`Unknown_global (Text.Raw idx))
| _ -> Ok (Binary.Global_get idx)
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be checked by find_global or in typechecking phase already

let* stack = Stack.pop_ref stack in
Stack.push [ i32 ] stack
| Ref_as_non_null ->
let* stack = Stack.pop_ref stack in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let* rt, stack = Stack.pop_ref stack in
Stack.push rt stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants