Contents

JSBigIntCreateWithString(_:_:_:)

Declaration

func JSBigIntCreateWithString(_ ctx: JSContextRef, _ string: JSStringRef, _ exception: UnsafeMutablePointer<JSValueRef?>?) -> JSValueRef

Parameters

  • ctx:

    The execution context to use.

  • string:

    The JSStringRef representation of an integer.

  • 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 string, or NULL if an exception is thrown.

Discussion

Creates a JavaScript BigInt with an integer represented in string.

This is equivalent to calling the BigInt constructor from JavaScript with a string argument.