---
title: "JSBigIntCreateWithInt64(_:_:_:)"
framework: JavaScriptCore
role: symbol
role_heading: Function
platforms: [iOS 18.0+, iPadOS 18.0+, Mac Catalyst 18.0+, macOS 15.0+, tvOS 9.0+, visionOS 2.0+]
path: "javascriptcore/jsbigintcreatewithint64(_:_:_:)"
---

# JSBigIntCreateWithInt64(_:_:_:)

## Declaration

```swift
func JSBigIntCreateWithInt64(_ ctx: JSContextRef, _ integer: Int64, _ exception: UnsafeMutablePointer<JSValueRef?>?) -> JSValueRef
```

## Parameters

- `ctx`: The execution context to use.
- `integer`: The 64-bit signed integer to copy into the new BigInt JSValue.
- `exception`: A pointer to a JSValueRef in which to store an exception, if any. To reliable detect exception, initialize this to null before the call. Pass NULL if you do not care to store an exception.

## Return Value

Return Value A BigInt JSValue of the integer, or NULL if an exception is thrown.

## Discussion

Discussion Creates a JavaScript BigInt with a 64-bit signed integer.
