JSContextRef.h

Overview

See the Overview section above for header-level documentation.

Overview

Included Headers

  • <JavaScriptCore/JSObjectRef.h>

  • <JavaScriptCore/JSValueRef.h>

  • <JavaScriptCore/WebKitAvailability.h>

  • <stdbool.h>

Topics

Miscellaneous

func JSContextGetGlobalObject(JSContextRef!) -> JSObjectRef!

Gets the global object of a JavaScript execution context.

func JSContextGetGroup(JSContextRef!) -> JSContextGroupRef!

Gets the context group to which a JavaScript execution context belongs.

func JSContextGroupCreate() -> JSContextGroupRef!

Creates a JavaScript context group.

func JSContextGroupRelease(JSContextGroupRef!)

Releases a JavaScript context group.

func JSGlobalContextCreate(JSClassRef!) -> JSGlobalContextRef!

Creates a global JavaScript execution context.

func JSGlobalContextCreateInGroup(JSContextGroupRef!, JSClassRef!) -> JSGlobalContextRef!

Creates a global JavaScript execution context in the context group provided.

func JSGlobalContextRelease(JSGlobalContextRef!)

Releases a global JavaScript execution context.

See Also

Legacy JavaScriptCore APIs

JSBase.h

Defines the JavaScriptCore interface engine.

JSObjectRef.h

A JavaScript Object.

JSStringRef.h

A UTF16 character buffer that is the fundamental string representation in JavaScript.

JSStringRefCF.h

Contains CFString convenience methods.

JSValueRef.h

A JavaScript value that is the base type for all JavaScript values and the polymorphic functions on them.