JSGlobalContextCreateInGroup top-level property
JSGlobalContextRef Function(JSContextGroupRef group, JSClassRef globalObjectClass)
JSGlobalContextCreateInGroup
final
Creates a global JavaScript execution context in the context group provided.
group
The context group to use. The created global context retains the group.
Pass NULL to create a unique group for the context.
globalObjectClass
The class to use when creating the global object. Pass
NULL to use the default object class.
@result
A JSGlobalContext with a global object of class globalObjectClass and a context
group equal to group.
@discussion
JSGlobalContextCreateInGroup allocates a global object and populates it with
all the built-in JavaScript objects, such as Object, Function, String, and Array.
Implementation
final JSGlobalContextRef Function(JSContextGroupRef group, JSClassRef globalObjectClass) JSGlobalContextCreateInGroup =
jscLib.lookup<NativeFunction<JSGlobalContextRef Function(JSContextGroupRef group, JSClassRef globalObjectClass)>>('JSGlobalContextCreateInGroup').asFunction();