bytecodealliance / componentize-py

Apache License 2.0
136 stars 13 forks source link

Improve type mismatch detection and reporting #13

Open dicej opened 12 months ago

dicej commented 12 months ago

Currently, if Python code passes the wrong number or types of parameters to the host, or returns a result of an unexpected type, componentize-py generally reacts by panicking and trapping. That's probably unavoidable in most cases, but it should at least print an informative and actionable diagnostic prior to panicking.