---
title: "init(jsGlobalContextRef:)"
framework: javascriptcore
role: symbol
role_heading: Initializer
path: "javascriptcore/jscontext/init(jsglobalcontextref:)-1hstm"
---

# init(jsGlobalContextRef:)

## Declaration

```swift
init!(jsGlobalContextRef: JSGlobalContextRef!)
```

## Return Value

Return Value The JSContext equivalent of the provided JSGlobalContextRef.

## Discussion

Discussion Create a JSContext, wrapping its C API counterpart.
