Initializer

init(nullIn:)

Creates a JavaScript null value.

Declaration

init!(nullIn context: JSContext!)

Parameters

context

The JavaScript context in which to create the value.

Return Value

The JavaScript null value.

See Also

Creating JavaScript Values

init!(object: Any!, in: JSContext!)

Creates a JavaScript value by converting the specified native object.

init!(bool: Bool, in: JSContext!)

Creates a JavaScript representation of the specified Boolean value.

init!(double: Double, in: JSContext!)

Creates a JavaScript representation of the specified floating-point value.

init!(int32: Int32, in: JSContext!)

Creates a JavaScript representation of the specified signed integer value.

init!(uInt32: UInt32, in: JSContext!)

Creates a JavaScript representation of the specified unsigned integer value.

init!(newObjectIn: JSContext!)

Creates a new, empty JavaScript object value.

init!(newArrayIn: JSContext!)

Creates a new, empty JavaScript array value.

init!(newRegularExpressionFromPattern: String!, flags: String!, in: JSContext!)

Creates a JavaScript regular expression value from the specified pattern.

init!(newErrorFromMessage: String!, in: JSContext!)

Creates a JavaScript error value with the specified error message.

init!(undefinedIn: JSContext!)

Creates a JavaScript undefined value.

init!(point: CGPoint, in: JSContext!)

Creates a JavaScript representation of the specified point.

init!(range: NSRange, in: JSContext!)

Creates a JavaScript representation of the specified range.

init!(rect: CGRect, in: JSContext!)

Creates a JavaScript representation of the specified rectangle.

init!(size: CGSize, in: JSContext!)

Creates a JavaScript representation of the specified width and height.