Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Can catch_ref / catch_all_ref's destinations have type (ref exn)? #336

@aheejin

Description

@aheejin

Can catch_ref or catch_all_ref's destination blocks have a non-nullable exnref as the return type?

block (ref exn)
  try_table (catch_all_ref 0)
    ...
  end
end

The current EH spec interpreter does not handle (ref ..) keyword (it is included in the GC spec), so I can't test this with the current interpreter. The formal spec only says exnref. Does this mean it can't be (ref exn)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions