Contents

JSBigIntCreateWithUInt64(_:_:_:)

Declaration

func JSBigIntCreateWithUInt64(_ ctx: JSContextRef, _ integer: UInt64, _ exception: UnsafeMutablePointer<JSValueRef?>?) -> JSValueRef

Parameters

  • ctx:

    The execution context to use.

  • integer:

    The 64-bit unsigned 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

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

Discussion

Creates a JavaScript BigInt with a 64-bit unsigned integer.