Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/core/stack-switching/cont.wast
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@
)
)

(func (export "null-new") (result (ref null $k1))
(func (export "null-new")
(cont.new $k1
(ref.null $f1)
)
(unreachable)
Copy link
Member

Choose a reason for hiding this comment

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

In general tools/engines other than the reference interpreter do not actually compare their error messages against the error messages in assert_trap assertions because it is expected that their error messages might be different. The trap from the unreachable here can therefore make the test appear to pass even if there is a bug that lets cont.new succeed without trapping. It would be better to use a drop instead.

)
)

Expand Down