Initializer

init(jsValueRef:in:)

Creates a JavaScript value object from the equivalent C representation.

Declaration

init!(jsValueRef value: JSValueRef!, in context: JSContext!)

Parameters

value

A C JavaScript value reference.

context

The JavaScript context in which to create the value.

Return Value

A JavaScript value object representing the same value.

Discussion

See JSValueRef.h for the C JavaScriptCore API.

See Also

Working with the C JavaScriptCore API

var jsValueRef: JSValueRef!

Returns the C representation of the JavaScript value.