Struct josephine::context::JSContext [] [src]

pub struct JSContext<S> { /* fields omitted */ }

The type for JS contexts whose current state is S.

Methods

impl JSContext<Owned>
[src]

[src]

Create a new JSContext.

impl<S> JSContext<S>
[src]

[src]

Get a snapshot of the JS state. The snapshot only allows access to the methods that are guaranteed not to call GC, so we don't need to root JS-managed pointers during the lifetime of a snapshot.

[src]

Enter a known compartment.

[src]

Enter a compartment.

[src]

Give ownership of data to JS. This allocates JS heap, which may trigger GC.

[src]

Give ownership of data to JS. This allocates JS heap, which may trigger GC.

[src]

Create a compartment

[src]

Finish initializing a JS Context

[src]

Get the object we entered the current compartment via

[src]

Get the global of an initialized context.

[src]

Create a new root.

[src]

[src]

[src]

[src]

[src]

[src]