Support checked closed generic portable bindings
This commit is contained in:
@@ -103,3 +103,13 @@ against both generated targets without casts. The root
|
||||
`camino-portable-bindings` qualification compares Node, Window, Worker and
|
||||
serialized-port behavior. Its simulated channel tests adapters, not installed
|
||||
operation acquisition or process isolation; those require the coordinator.
|
||||
|
||||
Closed generic package applications use the same portable adapters. The checked
|
||||
workspace specializes their input/output types and dependency ports before code
|
||||
generation. Each application has its own export ID and generated handler name
|
||||
(`name$<specialization digest>`); handlers are concrete, so a string application
|
||||
and a list-of-int64 application cannot accidentally share an untyped codec.
|
||||
Common implementation helpers can still be ordinary generic TypeScript functions.
|
||||
This does not implement universal runtime type application or legacy constructors.
|
||||
The `camino-portable-bindings` check compiles positive/negative typed consumers and
|
||||
executes both specializations in Node, Chromium Window, and Worker hosts.
|
||||
|
||||
Reference in New Issue
Block a user