WebAssembly / component-model

Repository for design and specification of the Component Model
Other
933 stars 79 forks source link

Fix lifting an own handle from a borrow handle #214

Closed alexcrichton closed 1 year ago

alexcrichton commented 1 year ago

This fixes what I believe is a mistake in the CanonicalABI.md explainer currently where a lifting an owned resource handle from the table can succeed if the entry in the table was actually a borrowed handle. This inserts a check to ensure that the handle is an own handle before completing the lifting operation.

lukewagner commented 1 year ago

Thanks!