<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JavaScriptCore",
  "identifier" : "/documentation/JavaScriptCore/JSValue/init(newBigIntFrom:in:)-8l9iv",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "JavaScriptCore"
    ],
    "preciseIdentifier" : "c:objc(cs)JSValue(cm)valueWithNewBigIntFromInt64:inContext:"
  },
  "title" : "init(newBigIntFrom:in:)"
}
-->

# init(newBigIntFrom:in:)

```
init?(newBigIntFrom int64: Int64, in context: JSContext)
```

## Parameters

`int64`

The signed 64-bit integer of the BigInt JavaScript value being created.

`context`

The JSContext to which the resulting JSValue belongs.

## Return Value

The JSValue representing a JavaScript value with type BigInt.

## Discussion

\abstract Create a new BigInt value from a <code>int64_t</code>.

---

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)