Skip to content

Make multiple contexts possible #1

@joskuijpers

Description

@joskuijpers

The API of L8Framework could be changed to match even more like JavaScriptCore:

L8Runtime now wraps both v8::Context and v8::Isolate. It could be made into L8Context, wrapping v8::Context in a specific isolate, namely L8VirtualMachine, which wraps v8::Isolate.

Managed values only use an isolate so they go into L8VirtualMachine. L8Value is bound to a context, so -[valueWithXX:] changes into -[valueWithXX:inContext:], just like JSC.

If there is interest in this, it can be build in a new branch. It is however not backward compatible. (it can be, but that makes it very messy).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions