<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JavaScriptCore",
  "identifier" : "/documentation/JavaScriptCore/JSContextGroupRef",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "JavaScriptCore"
    ],
    "preciseIdentifier" : "c:@T@JSContextGroupRef"
  },
  "title" : "JSContextGroupRef"
}
-->

# JSContextGroupRef

A group that associates JavaScript contexts with one another.

```
typealias JSContextGroupRef = OpaquePointer
```

## Discussion

Contexts in the same group may share and exchange JavaScript objects.

## Topics

### Accessing the Content Group

[`JSContextGetGroup(_:)`](/documentation/JavaScriptCore/JSContextGetGroup(_:))

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)