Skip to content
Commit Detail

Commit 32191ee

Author
Dan Lapid <dan.lapid@gmail.com> 2024-11-20 11:06:38 +0000
Parents
dfc74ca
Tree
ae1ea82
Enable using context-specific type wrapper instances.

Sometimes we'd like to have multiple contexts with different
typewrapper that were instantiated with different configuration objects.
To do that this commit extends the Isolate class, wrapper is now a
vector of wrappers, the 0 indexed wrapper is the default wrapper but
additional wrappers can be created with `instantiateWrapper` which
receives a new Configuration object. To associate a context with its
wrapper we use `context->SetAlignedPointerInEmbedderData(3, wrapper)`.

Files changed

4 files changed~4 modified