Skip to content

[EH] Prune exnref-returning/receiving exports#7290

Merged
kripken merged 1 commit intoWebAssembly:mainfrom
kripken:exnref.prune
Feb 12, 2025
Merged

[EH] Prune exnref-returning/receiving exports#7290
kripken merged 1 commit intoWebAssembly:mainfrom
kripken:exnref.prune

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Feb 11, 2025

Like v128, JS VMs will trap on an exnref on the boundary between JS and wasm,
so the fuzzer must prune such exports (we run that pruning when we intend
to compare d8 to the binaryen interpreter; after the pruning, all exports should
behave the same between those VMs).

;; CHECK-NEXT: (ref.null noexn)
;; CHECK-NEXT: )
(func $export-exn (export "export-exn") (result exnref)
;; This will be pruned.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where do we see that it is pruned? (The CHECK lines are the same, so..)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The export is pruned, specifically. It is exported in the input but not in the output.

@kripken kripken merged commit 0be9bfe into WebAssembly:main Feb 12, 2025
@kripken kripken deleted the exnref.prune branch February 12, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants