WebAssembly / component-model

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

Move resource type tag to handle #147

Closed lukewagner closed 1 year ago

lukewagner commented 1 year ago

This tweak to the runtime semantics of the Canonical ABI ensures that components can't use the dynamic type checks (performed when lifting a handle from an untyped i32 index into a homogeneous table) to uncover whether different type imports are in fact the same or, in a future state with resource subtyping, to uncover undeclared subtyping relationships between type imports. The problem and solution to this problem were presented way back but then I forgot all about it.