Contents

JSValueMakeString(_:_:)

Creates a JavaScript value of the string type.

Declaration

func JSValueMakeString(_ ctx: JSContextRef!, _ string: JSStringRef!) -> JSValueRef!

Parameters

  • ctx:

    The execution context to use.

  • string:

    The Jsstringref to assign to the newly created Jsvalueref. The newly created Jsvalueref retains string, and releases it upon garbage collection.

Return Value

A JSValueRef of the string type that represents the value of string.

See Also

Creating Values