Function javascriptcore_sys::JSContextGroupCreate [] [src]

pub unsafe extern "C" fn JSContextGroupCreate() -> JSContextGroupRef

Creates a JavaScript context group.

JSContextGroup associates JavaScript contexts with one another. Contexts in the same group may share and exchange JavaScript objects. Sharing and/or exchanging JavaScript objects between contexts in different groups will produce undefined behavior. When objects from the same context group are used in multiple threads, explicit synchronization is required.

Returns the created JSContextGroup.