JavaScriptCore Changes for Swift
JavaScriptCore
Removed JSClassDefinition.init(version: Int32, attributes: JSClassAttributes, className: UnsafePointer<Int8>, parentClass: JSClassRef, staticValues: UnsafePointer<JSStaticValue>, staticFunctions: UnsafePointer<JSStaticFunction>, initialize: JSObjectInitializeCallback, finalize: JSObjectFinalizeCallback, hasProperty: JSObjectHasPropertyCallback, getProperty: JSObjectGetPropertyCallback, setProperty: JSObjectSetPropertyCallback, deleteProperty: JSObjectDeletePropertyCallback, getPropertyNames: JSObjectGetPropertyNamesCallback, callAsFunction: JSObjectCallAsFunctionCallback, callAsConstructor: JSObjectCallAsConstructorCallback, hasInstance: JSObjectHasInstanceCallback, convertToType: JSObjectConvertToTypeCallback)
Removed JSStaticFunction.init(name: UnsafePointer<Int8>, callAsFunction: JSObjectCallAsFunctionCallback, attributes: JSPropertyAttributes)
Removed JSStaticValue.init(name: UnsafePointer<Int8>, getProperty: JSObjectGetPropertyCallback, setProperty: JSObjectSetPropertyCallback, attributes: JSPropertyAttributes)
Removed JSType.value
Removed JSValue.isBoolean() -> Bool
Removed JSValue.isNull() -> Bool
Removed JSValue.isNumber() -> Bool
Removed JSValue.isObject() -> Bool
Removed JSValue.isString() -> Bool
Removed JSValue.isUndefined() -> Bool
Added JSClassDefinition.init(version: Int32, attributes: JSClassAttributes, className: UnsafePointer<Int8>, parentClass: JSClassRef, staticValues: UnsafePointer<JSStaticValue>, staticFunctions: UnsafePointer<JSStaticFunction>, initialize: JSObjectInitializeCallback!, finalize: JSObjectFinalizeCallback!, hasProperty: JSObjectHasPropertyCallback!, getProperty: JSObjectGetPropertyCallback!, setProperty: JSObjectSetPropertyCallback!, deleteProperty: JSObjectDeletePropertyCallback!, getPropertyNames: JSObjectGetPropertyNamesCallback!, callAsFunction: JSObjectCallAsFunctionCallback!, callAsConstructor: JSObjectCallAsConstructorCallback!, hasInstance: JSObjectHasInstanceCallback!, convertToType: JSObjectConvertToTypeCallback!)
Added JSStaticFunction.init(name: UnsafePointer<Int8>, callAsFunction: JSObjectCallAsFunctionCallback!, attributes: JSPropertyAttributes)
Added JSStaticValue.init(name: UnsafePointer<Int8>, getProperty: JSObjectGetPropertyCallback!, setProperty: JSObjectSetPropertyCallback!, attributes: JSPropertyAttributes)
Added JSType.init(rawValue: UInt32)
Added JSType.rawValue
Added JSValue.isArray
Added JSValue.isBoolean
Added JSValue.isDate
Added JSValue.isNull
Added JSValue.isNumber
Added JSValue.isObject
Added JSValue.isString
Added JSValue.isUndefined
Modified JSClassDefinition [struct]
| Declaration | |
|---|---|
| From | struct JSClassDefinition {
var version: Int32
var attributes: JSClassAttributes
var className: UnsafePointer<Int8>
var parentClass: JSClassRef
var staticValues: UnsafePointer<JSStaticValue>
var staticFunctions: UnsafePointer<JSStaticFunction>
var initialize: JSObjectInitializeCallback
var finalize: JSObjectFinalizeCallback
var hasProperty: JSObjectHasPropertyCallback
var getProperty: JSObjectGetPropertyCallback
var setProperty: JSObjectSetPropertyCallback
var deleteProperty: JSObjectDeletePropertyCallback
var getPropertyNames: JSObjectGetPropertyNamesCallback
var callAsFunction: JSObjectCallAsFunctionCallback
var callAsConstructor: JSObjectCallAsConstructorCallback
var hasInstance: JSObjectHasInstanceCallback
var convertToType: JSObjectConvertToTypeCallback
init()
init(version version: Int32, attributes attributes: JSClassAttributes, className className: UnsafePointer<Int8>, parentClass parentClass: JSClassRef, staticValues staticValues: UnsafePointer<JSStaticValue>, staticFunctions staticFunctions: UnsafePointer<JSStaticFunction>, initialize initialize: JSObjectInitializeCallback, finalize finalize: JSObjectFinalizeCallback, hasProperty hasProperty: JSObjectHasPropertyCallback, getProperty getProperty: JSObjectGetPropertyCallback, setProperty setProperty: JSObjectSetPropertyCallback, deleteProperty deleteProperty: JSObjectDeletePropertyCallback, getPropertyNames getPropertyNames: JSObjectGetPropertyNamesCallback, callAsFunction callAsFunction: JSObjectCallAsFunctionCallback, callAsConstructor callAsConstructor: JSObjectCallAsConstructorCallback, hasInstance hasInstance: JSObjectHasInstanceCallback, convertToType convertToType: JSObjectConvertToTypeCallback)
} |
| To | struct JSClassDefinition {
var version: Int32
var attributes: JSClassAttributes
var className: UnsafePointer<Int8>
var parentClass: JSClassRef
var staticValues: UnsafePointer<JSStaticValue>
var staticFunctions: UnsafePointer<JSStaticFunction>
var initialize: JSObjectInitializeCallback!
var finalize: JSObjectFinalizeCallback!
var hasProperty: JSObjectHasPropertyCallback!
var getProperty: JSObjectGetPropertyCallback!
var setProperty: JSObjectSetPropertyCallback!
var deleteProperty: JSObjectDeletePropertyCallback!
var getPropertyNames: JSObjectGetPropertyNamesCallback!
var callAsFunction: JSObjectCallAsFunctionCallback!
var callAsConstructor: JSObjectCallAsConstructorCallback!
var hasInstance: JSObjectHasInstanceCallback!
var convertToType: JSObjectConvertToTypeCallback!
init()
init(version version: Int32, attributes attributes: JSClassAttributes, className className: UnsafePointer<Int8>, parentClass parentClass: JSClassRef, staticValues staticValues: UnsafePointer<JSStaticValue>, staticFunctions staticFunctions: UnsafePointer<JSStaticFunction>, initialize initialize: JSObjectInitializeCallback!, finalize finalize: JSObjectFinalizeCallback!, hasProperty hasProperty: JSObjectHasPropertyCallback!, getProperty getProperty: JSObjectGetPropertyCallback!, setProperty setProperty: JSObjectSetPropertyCallback!, deleteProperty deleteProperty: JSObjectDeletePropertyCallback!, getPropertyNames getPropertyNames: JSObjectGetPropertyNamesCallback!, callAsFunction callAsFunction: JSObjectCallAsFunctionCallback!, callAsConstructor callAsConstructor: JSObjectCallAsConstructorCallback!, hasInstance hasInstance: JSObjectHasInstanceCallback!, convertToType convertToType: JSObjectConvertToTypeCallback!)
} |
Modified JSClassDefinition.callAsConstructor
| Declaration | |
|---|---|
| From | var callAsConstructor: JSObjectCallAsConstructorCallback |
| To | var callAsConstructor: JSObjectCallAsConstructorCallback! |
Modified JSClassDefinition.callAsFunction
| Declaration | |
|---|---|
| From | var callAsFunction: JSObjectCallAsFunctionCallback |
| To | var callAsFunction: JSObjectCallAsFunctionCallback! |
Modified JSClassDefinition.convertToType
| Declaration | |
|---|---|
| From | var convertToType: JSObjectConvertToTypeCallback |
| To | var convertToType: JSObjectConvertToTypeCallback! |
Modified JSClassDefinition.deleteProperty
| Declaration | |
|---|---|
| From | var deleteProperty: JSObjectDeletePropertyCallback |
| To | var deleteProperty: JSObjectDeletePropertyCallback! |
Modified JSClassDefinition.finalize
| Declaration | |
|---|---|
| From | var finalize: JSObjectFinalizeCallback |
| To | var finalize: JSObjectFinalizeCallback! |
Modified JSClassDefinition.getProperty
| Declaration | |
|---|---|
| From | var getProperty: JSObjectGetPropertyCallback |
| To | var getProperty: JSObjectGetPropertyCallback! |
Modified JSClassDefinition.getPropertyNames
| Declaration | |
|---|---|
| From | var getPropertyNames: JSObjectGetPropertyNamesCallback |
| To | var getPropertyNames: JSObjectGetPropertyNamesCallback! |
Modified JSClassDefinition.hasInstance
| Declaration | |
|---|---|
| From | var hasInstance: JSObjectHasInstanceCallback |
| To | var hasInstance: JSObjectHasInstanceCallback! |
Modified JSClassDefinition.hasProperty
| Declaration | |
|---|---|
| From | var hasProperty: JSObjectHasPropertyCallback |
| To | var hasProperty: JSObjectHasPropertyCallback! |
Modified JSClassDefinition.initialize
| Declaration | |
|---|---|
| From | var initialize: JSObjectInitializeCallback |
| To | var initialize: JSObjectInitializeCallback! |
Modified JSClassDefinition.setProperty
| Declaration | |
|---|---|
| From | var setProperty: JSObjectSetPropertyCallback |
| To | var setProperty: JSObjectSetPropertyCallback! |
Modified JSContext
| Declaration | |
|---|---|
| From | class JSContext : NSObject {
init!()
init!(virtualMachine virtualMachine: JSVirtualMachine!)
func evaluateScript(_ script: String!) -> JSValue!
func evaluateScript(_ script: String!, withSourceURL sourceURL: NSURL!) -> JSValue!
class func currentContext() -> JSContext!
class func currentCallee() -> JSValue!
class func currentThis() -> JSValue!
class func currentArguments() -> [AnyObject]!
var globalObject: JSValue! { get }
var exception: JSValue!
var exceptionHandler: ((JSContext!, JSValue!) -> Void)!
var virtualMachine: JSVirtualMachine! { get }
var name: String!
}
extension JSContext {
func objectForKeyedSubscript(_ key: AnyObject!) -> JSValue!
func setObject(_ object: AnyObject!, forKeyedSubscript key: NSObject!)
}
extension JSContext {
init!(JSGlobalContextRef jsGlobalContextRef: JSGlobalContextRef) -> JSContext
class func contextWithJSGlobalContextRef(_ jsGlobalContextRef: JSGlobalContextRef) -> JSContext!
var JSGlobalContextRef: JSGlobalContextRef { get }
} |
| To | class JSContext : NSObject {
init!()
init!(virtualMachine virtualMachine: JSVirtualMachine!)
func evaluateScript(_ script: String!) -> JSValue!
func evaluateScript(_ script: String!, withSourceURL sourceURL: NSURL!) -> JSValue!
class func currentContext() -> JSContext!
class func currentCallee() -> JSValue!
class func currentThis() -> JSValue!
class func currentArguments() -> [AnyObject]!
var globalObject: JSValue! { get }
var exception: JSValue!
var exceptionHandler: ((JSContext!, JSValue!) -> Void)!
var virtualMachine: JSVirtualMachine! { get }
var name: String!
}
extension JSContext {
func objectForKeyedSubscript(_ key: AnyObject!) -> JSValue!
func setObject(_ object: AnyObject!, forKeyedSubscript key: protocol<NSCopying, NSObjectProtocol>!)
}
extension JSContext {
init!(JSGlobalContextRef jsGlobalContextRef: JSGlobalContextRef)
class func contextWithJSGlobalContextRef(_ jsGlobalContextRef: JSGlobalContextRef) -> JSContext!
var JSGlobalContextRef: JSGlobalContextRef { get }
} |
| Declaration | |
|---|---|
| From | init!(JSGlobalContextRef jsGlobalContextRef: JSGlobalContextRef) -> JSContext |
| To | init!(JSGlobalContextRef jsGlobalContextRef: JSGlobalContextRef) |
Modified JSContext.setObject(_: AnyObject!, forKeyedSubscript: protocol<NSCopying, NSObjectProtocol>!)
| Declaration | |
|---|---|
| From | func setObject(_ object: AnyObject!, forKeyedSubscript key: NSObject!) |
| To | func setObject(_ object: AnyObject!, forKeyedSubscript key: protocol<NSCopying, NSObjectProtocol>!) |
Modified JSManagedValue
| Declaration | |
|---|---|
| From | class JSManagedValue : NSObject {
init!(value value: JSValue!) -> JSManagedValue
class func managedValueWithValue(_ value: JSValue!) -> JSManagedValue!
init!(value value: JSValue!, andOwner owner: AnyObject!) -> JSManagedValue
class func managedValueWithValue(_ value: JSValue!, andOwner owner: AnyObject!) -> JSManagedValue!
init!(value value: JSValue!)
var value: JSValue! { get }
} |
| To | class JSManagedValue : NSObject {
init!(value value: JSValue!)
class func managedValueWithValue(_ value: JSValue!) -> JSManagedValue!
init!(value value: JSValue!, andOwner owner: AnyObject!)
class func managedValueWithValue(_ value: JSValue!, andOwner owner: AnyObject!) -> JSManagedValue!
init!(value value: JSValue!)
var value: JSValue! { get }
} |
| Declaration | |
|---|---|
| From | init!(value value: JSValue!, andOwner owner: AnyObject!) -> JSManagedValue |
| To | init!(value value: JSValue!, andOwner owner: AnyObject!) |
Modified JSStaticFunction [struct]
| Declaration | |
|---|---|
| From | struct JSStaticFunction {
var name: UnsafePointer<Int8>
var callAsFunction: JSObjectCallAsFunctionCallback
var attributes: JSPropertyAttributes
init()
init(name name: UnsafePointer<Int8>, callAsFunction callAsFunction: JSObjectCallAsFunctionCallback, attributes attributes: JSPropertyAttributes)
} |
| To | struct JSStaticFunction {
var name: UnsafePointer<Int8>
var callAsFunction: JSObjectCallAsFunctionCallback!
var attributes: JSPropertyAttributes
init()
init(name name: UnsafePointer<Int8>, callAsFunction callAsFunction: JSObjectCallAsFunctionCallback!, attributes attributes: JSPropertyAttributes)
} |
Modified JSStaticFunction.callAsFunction
| Declaration | |
|---|---|
| From | var callAsFunction: JSObjectCallAsFunctionCallback |
| To | var callAsFunction: JSObjectCallAsFunctionCallback! |
Modified JSStaticValue [struct]
| Declaration | |
|---|---|
| From | struct JSStaticValue {
var name: UnsafePointer<Int8>
var getProperty: JSObjectGetPropertyCallback
var setProperty: JSObjectSetPropertyCallback
var attributes: JSPropertyAttributes
init()
init(name name: UnsafePointer<Int8>, getProperty getProperty: JSObjectGetPropertyCallback, setProperty setProperty: JSObjectSetPropertyCallback, attributes attributes: JSPropertyAttributes)
} |
| To | struct JSStaticValue {
var name: UnsafePointer<Int8>
var getProperty: JSObjectGetPropertyCallback!
var setProperty: JSObjectSetPropertyCallback!
var attributes: JSPropertyAttributes
init()
init(name name: UnsafePointer<Int8>, getProperty getProperty: JSObjectGetPropertyCallback!, setProperty setProperty: JSObjectSetPropertyCallback!, attributes attributes: JSPropertyAttributes)
} |
Modified JSStaticValue.getProperty
| Declaration | |
|---|---|
| From | var getProperty: JSObjectGetPropertyCallback |
| To | var getProperty: JSObjectGetPropertyCallback! |
Modified JSStaticValue.setProperty
| Declaration | |
|---|---|
| From | var setProperty: JSObjectSetPropertyCallback |
| To | var setProperty: JSObjectSetPropertyCallback! |
Modified JSType [struct]
| Declaration | Protocols | |
|---|---|---|
| From | struct JSType {
init(_ value: UInt32)
var value: UInt32
} | -- |
| To | struct JSType : RawRepresentable {
init(_ rawValue: UInt32)
init(rawValue rawValue: UInt32)
var rawValue: UInt32
} | RawRepresentable |
Modified JSValue
| Declaration | |
|---|---|
| From | class JSValue : NSObject {
var context: JSContext! { get }
init!(object value: AnyObject!, inContext context: JSContext!) -> JSValue
class func valueWithObject(_ value: AnyObject!, inContext context: JSContext!) -> JSValue!
init!(bool value: Bool, inContext context: JSContext!) -> JSValue
class func valueWithBool(_ value: Bool, inContext context: JSContext!) -> JSValue!
init!(double value: Double, inContext context: JSContext!) -> JSValue
class func valueWithDouble(_ value: Double, inContext context: JSContext!) -> JSValue!
init!(int32 value: Int32, inContext context: JSContext!) -> JSValue
class func valueWithInt32(_ value: Int32, inContext context: JSContext!) -> JSValue!
init!(UInt32 value: UInt32, inContext context: JSContext!) -> JSValue
class func valueWithUInt32(_ value: UInt32, inContext context: JSContext!) -> JSValue!
init!(newObjectInContext context: JSContext!) -> JSValue
class func valueWithNewObjectInContext(_ context: JSContext!) -> JSValue!
init!(newArrayInContext context: JSContext!) -> JSValue
class func valueWithNewArrayInContext(_ context: JSContext!) -> JSValue!
init!(newRegularExpressionFromPattern pattern: String!, flags flags: String!, inContext context: JSContext!) -> JSValue
class func valueWithNewRegularExpressionFromPattern(_ pattern: String!, flags flags: String!, inContext context: JSContext!) -> JSValue!
init!(newErrorFromMessage message: String!, inContext context: JSContext!) -> JSValue
class func valueWithNewErrorFromMessage(_ message: String!, inContext context: JSContext!) -> JSValue!
init!(nullInContext context: JSContext!) -> JSValue
class func valueWithNullInContext(_ context: JSContext!) -> JSValue!
init!(undefinedInContext context: JSContext!) -> JSValue
class func valueWithUndefinedInContext(_ context: JSContext!) -> JSValue!
func toObject() -> AnyObject!
func toObjectOfClass(_ expectedClass: AnyClass!) -> AnyObject!
func toBool() -> Bool
func toDouble() -> Double
func toInt32() -> Int32
func toUInt32() -> UInt32
func toNumber() -> NSNumber!
func toString() -> String!
func toDate() -> NSDate!
func toArray() -> [AnyObject]!
func toDictionary() -> [NSObject : AnyObject]!
func valueForProperty(_ property: String!) -> JSValue!
func setValue(_ value: AnyObject!, forProperty property: String!)
func deleteProperty(_ property: String!) -> Bool
func hasProperty(_ property: String!) -> Bool
func defineProperty(_ property: String!, descriptor descriptor: AnyObject!)
func valueAtIndex(_ index: Int) -> JSValue!
func setValue(_ value: AnyObject!, atIndex index: Int)
func isUndefined() -> Bool
func isNull() -> Bool
func isBoolean() -> Bool
func isNumber() -> Bool
func isString() -> Bool
func isObject() -> Bool
func isEqualToObject(_ value: AnyObject!) -> Bool
func isEqualWithTypeCoercionToObject(_ value: AnyObject!) -> Bool
func isInstanceOf(_ value: AnyObject!) -> Bool
func callWithArguments(_ arguments: [AnyObject]!) -> JSValue!
func constructWithArguments(_ arguments: [AnyObject]!) -> JSValue!
func invokeMethod(_ method: String!, withArguments arguments: [AnyObject]!) -> JSValue!
}
extension JSValue {
init!(point point: CGPoint, inContext context: JSContext!) -> JSValue
class func valueWithPoint(_ point: CGPoint, inContext context: JSContext!) -> JSValue!
init!(range range: NSRange, inContext context: JSContext!) -> JSValue
class func valueWithRange(_ range: NSRange, inContext context: JSContext!) -> JSValue!
init!(rect rect: CGRect, inContext context: JSContext!) -> JSValue
class func valueWithRect(_ rect: CGRect, inContext context: JSContext!) -> JSValue!
init!(size size: CGSize, inContext context: JSContext!) -> JSValue
class func valueWithSize(_ size: CGSize, inContext context: JSContext!) -> JSValue!
func toPoint() -> CGPoint
func toRange() -> NSRange
func toRect() -> CGRect
func toSize() -> CGSize
}
extension JSValue {
func objectForKeyedSubscript(_ key: AnyObject!) -> JSValue!
func objectAtIndexedSubscript(_ index: Int) -> JSValue!
func setObject(_ object: AnyObject!, forKeyedSubscript key: NSObject!)
func setObject(_ object: AnyObject!, atIndexedSubscript index: Int)
}
extension JSValue {
init!(JSValueRef value: JSValueRef, inContext context: JSContext!) -> JSValue
class func valueWithJSValueRef(_ value: JSValueRef, inContext context: JSContext!) -> JSValue!
var JSValueRef: JSValueRef { get }
} |
| To | class JSValue : NSObject {
var context: JSContext! { get }
init!(object value: AnyObject!, inContext context: JSContext!)
class func valueWithObject(_ value: AnyObject!, inContext context: JSContext!) -> JSValue!
init!(bool value: Bool, inContext context: JSContext!)
class func valueWithBool(_ value: Bool, inContext context: JSContext!) -> JSValue!
init!(double value: Double, inContext context: JSContext!)
class func valueWithDouble(_ value: Double, inContext context: JSContext!) -> JSValue!
init!(int32 value: Int32, inContext context: JSContext!)
class func valueWithInt32(_ value: Int32, inContext context: JSContext!) -> JSValue!
init!(UInt32 value: UInt32, inContext context: JSContext!)
class func valueWithUInt32(_ value: UInt32, inContext context: JSContext!) -> JSValue!
init!(newObjectInContext context: JSContext!)
class func valueWithNewObjectInContext(_ context: JSContext!) -> JSValue!
init!(newArrayInContext context: JSContext!)
class func valueWithNewArrayInContext(_ context: JSContext!) -> JSValue!
init!(newRegularExpressionFromPattern pattern: String!, flags flags: String!, inContext context: JSContext!)
class func valueWithNewRegularExpressionFromPattern(_ pattern: String!, flags flags: String!, inContext context: JSContext!) -> JSValue!
init!(newErrorFromMessage message: String!, inContext context: JSContext!)
class func valueWithNewErrorFromMessage(_ message: String!, inContext context: JSContext!) -> JSValue!
init!(nullInContext context: JSContext!)
class func valueWithNullInContext(_ context: JSContext!) -> JSValue!
init!(undefinedInContext context: JSContext!)
class func valueWithUndefinedInContext(_ context: JSContext!) -> JSValue!
func toObject() -> AnyObject!
func toObjectOfClass(_ expectedClass: AnyClass!) -> AnyObject!
func toBool() -> Bool
func toDouble() -> Double
func toInt32() -> Int32
func toUInt32() -> UInt32
func toNumber() -> NSNumber!
func toString() -> String!
func toDate() -> NSDate!
func toArray() -> [AnyObject]!
func toDictionary() -> [NSObject : AnyObject]!
func valueForProperty(_ property: String!) -> JSValue!
func setValue(_ value: AnyObject!, forProperty property: String!)
func deleteProperty(_ property: String!) -> Bool
func hasProperty(_ property: String!) -> Bool
func defineProperty(_ property: String!, descriptor descriptor: AnyObject!)
func valueAtIndex(_ index: Int) -> JSValue!
func setValue(_ value: AnyObject!, atIndex index: Int)
var isUndefined: Bool { get }
var isNull: Bool { get }
var isBoolean: Bool { get }
var isNumber: Bool { get }
var isString: Bool { get }
var isObject: Bool { get }
var isArray: Bool { get }
var isDate: Bool { get }
func isEqualToObject(_ value: AnyObject!) -> Bool
func isEqualWithTypeCoercionToObject(_ value: AnyObject!) -> Bool
func isInstanceOf(_ value: AnyObject!) -> Bool
func callWithArguments(_ arguments: [AnyObject]!) -> JSValue!
func constructWithArguments(_ arguments: [AnyObject]!) -> JSValue!
func invokeMethod(_ method: String!, withArguments arguments: [AnyObject]!) -> JSValue!
}
extension JSValue {
init!(point point: CGPoint, inContext context: JSContext!)
class func valueWithPoint(_ point: CGPoint, inContext context: JSContext!) -> JSValue!
init!(range range: NSRange, inContext context: JSContext!)
class func valueWithRange(_ range: NSRange, inContext context: JSContext!) -> JSValue!
init!(rect rect: CGRect, inContext context: JSContext!)
class func valueWithRect(_ rect: CGRect, inContext context: JSContext!) -> JSValue!
init!(size size: CGSize, inContext context: JSContext!)
class func valueWithSize(_ size: CGSize, inContext context: JSContext!) -> JSValue!
func toPoint() -> CGPoint
func toRange() -> NSRange
func toRect() -> CGRect
func toSize() -> CGSize
}
extension JSValue {
func objectForKeyedSubscript(_ key: AnyObject!) -> JSValue!
func objectAtIndexedSubscript(_ index: Int) -> JSValue!
func setObject(_ object: AnyObject!, forKeyedSubscript key: protocol<NSCopying, NSObjectProtocol>!)
func setObject(_ object: AnyObject!, atIndexedSubscript index: Int)
}
extension JSValue {
init!(JSValueRef value: JSValueRef, inContext context: JSContext!)
class func valueWithJSValueRef(_ value: JSValueRef, inContext context: JSContext!) -> JSValue!
var JSValueRef: JSValueRef { get }
} |
| Declaration | |
|---|---|
| From | init!(bool value: Bool, inContext context: JSContext!) -> JSValue |
| To | init!(bool value: Bool, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(double value: Double, inContext context: JSContext!) -> JSValue |
| To | init!(double value: Double, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(int32 value: Int32, inContext context: JSContext!) -> JSValue |
| To | init!(int32 value: Int32, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(JSValueRef value: JSValueRef, inContext context: JSContext!) -> JSValue |
| To | init!(JSValueRef value: JSValueRef, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(newArrayInContext context: JSContext!) -> JSValue |
| To | init!(newArrayInContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(newErrorFromMessage message: String!, inContext context: JSContext!) -> JSValue |
| To | init!(newErrorFromMessage message: String!, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(newObjectInContext context: JSContext!) -> JSValue |
| To | init!(newObjectInContext context: JSContext!) |
Modified JSValue.init(newRegularExpressionFromPattern: String!, flags: String!, inContext: JSContext!)
| Declaration | |
|---|---|
| From | init!(newRegularExpressionFromPattern pattern: String!, flags flags: String!, inContext context: JSContext!) -> JSValue |
| To | init!(newRegularExpressionFromPattern pattern: String!, flags flags: String!, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(nullInContext context: JSContext!) -> JSValue |
| To | init!(nullInContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(object value: AnyObject!, inContext context: JSContext!) -> JSValue |
| To | init!(object value: AnyObject!, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(point point: CGPoint, inContext context: JSContext!) -> JSValue |
| To | init!(point point: CGPoint, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(range range: NSRange, inContext context: JSContext!) -> JSValue |
| To | init!(range range: NSRange, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(rect rect: CGRect, inContext context: JSContext!) -> JSValue |
| To | init!(rect rect: CGRect, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(size size: CGSize, inContext context: JSContext!) -> JSValue |
| To | init!(size size: CGSize, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(UInt32 value: UInt32, inContext context: JSContext!) -> JSValue |
| To | init!(UInt32 value: UInt32, inContext context: JSContext!) |
| Declaration | |
|---|---|
| From | init!(undefinedInContext context: JSContext!) -> JSValue |
| To | init!(undefinedInContext context: JSContext!) |
Modified JSValue.setObject(_: AnyObject!, forKeyedSubscript: protocol<NSCopying, NSObjectProtocol>!)
| Declaration | |
|---|---|
| From | func setObject(_ object: AnyObject!, forKeyedSubscript key: NSObject!) |
| To | func setObject(_ object: AnyObject!, forKeyedSubscript key: protocol<NSCopying, NSObjectProtocol>!) |
Modified JSObjectCallAsConstructorCallback
| Declaration | |
|---|---|
| From | typealias JSObjectCallAsConstructorCallback = CFunctionPointer<((JSContextRef, JSObjectRef, Int, UnsafePointer<JSValueRef>, UnsafeMutablePointer<JSValueRef>) -> JSObjectRef)> |
| To | typealias JSObjectCallAsConstructorCallback = (JSContextRef, JSObjectRef, Int, UnsafePointer<JSValueRef>, UnsafeMutablePointer<JSValueRef>) -> JSObjectRef |
Modified JSObjectCallAsFunctionCallback
| Declaration | |
|---|---|
| From | typealias JSObjectCallAsFunctionCallback = CFunctionPointer<((JSContextRef, JSObjectRef, JSObjectRef, Int, UnsafePointer<JSValueRef>, UnsafeMutablePointer<JSValueRef>) -> JSValueRef)> |
| To | typealias JSObjectCallAsFunctionCallback = (JSContextRef, JSObjectRef, JSObjectRef, Int, UnsafePointer<JSValueRef>, UnsafeMutablePointer<JSValueRef>) -> JSValueRef |
Modified JSObjectConvertToTypeCallback
| Declaration | |
|---|---|
| From | typealias JSObjectConvertToTypeCallback = CFunctionPointer<((JSContextRef, JSObjectRef, JSType, UnsafeMutablePointer<JSValueRef>) -> JSValueRef)> |
| To | typealias JSObjectConvertToTypeCallback = (JSContextRef, JSObjectRef, JSType, UnsafeMutablePointer<JSValueRef>) -> JSValueRef |
Modified JSObjectDeletePropertyCallback
| Declaration | |
|---|---|
| From | typealias JSObjectDeletePropertyCallback = CFunctionPointer<((JSContextRef, JSObjectRef, JSStringRef, UnsafeMutablePointer<JSValueRef>) -> Bool)> |
| To | typealias JSObjectDeletePropertyCallback = (JSContextRef, JSObjectRef, JSStringRef, UnsafeMutablePointer<JSValueRef>) -> Bool |
Modified JSObjectFinalizeCallback
| Declaration | |
|---|---|
| From | typealias JSObjectFinalizeCallback = CFunctionPointer<((JSObjectRef) -> Void)> |
| To | typealias JSObjectFinalizeCallback = (JSObjectRef) -> Void |
Modified JSObjectGetPropertyCallback
| Declaration | |
|---|---|
| From | typealias JSObjectGetPropertyCallback = CFunctionPointer<((JSContextRef, JSObjectRef, JSStringRef, UnsafeMutablePointer<JSValueRef>) -> JSValueRef)> |
| To | typealias JSObjectGetPropertyCallback = (JSContextRef, JSObjectRef, JSStringRef, UnsafeMutablePointer<JSValueRef>) -> JSValueRef |
Modified JSObjectGetPropertyNamesCallback
| Declaration | |
|---|---|
| From | typealias JSObjectGetPropertyNamesCallback = CFunctionPointer<((JSContextRef, JSObjectRef, JSPropertyNameAccumulatorRef) -> Void)> |
| To | typealias JSObjectGetPropertyNamesCallback = (JSContextRef, JSObjectRef, JSPropertyNameAccumulatorRef) -> Void |
Modified JSObjectHasInstanceCallback
| Declaration | |
|---|---|
| From | typealias JSObjectHasInstanceCallback = CFunctionPointer<((JSContextRef, JSObjectRef, JSValueRef, UnsafeMutablePointer<JSValueRef>) -> Bool)> |
| To | typealias JSObjectHasInstanceCallback = (JSContextRef, JSObjectRef, JSValueRef, UnsafeMutablePointer<JSValueRef>) -> Bool |
Modified JSObjectHasPropertyCallback
| Declaration | |
|---|---|
| From | typealias JSObjectHasPropertyCallback = CFunctionPointer<((JSContextRef, JSObjectRef, JSStringRef) -> Bool)> |
| To | typealias JSObjectHasPropertyCallback = (JSContextRef, JSObjectRef, JSStringRef) -> Bool |
Modified JSObjectInitializeCallback
| Declaration | |
|---|---|
| From | typealias JSObjectInitializeCallback = CFunctionPointer<((JSContextRef, JSObjectRef) -> Void)> |
| To | typealias JSObjectInitializeCallback = (JSContextRef, JSObjectRef) -> Void |
| Declaration | |
|---|---|
| From | func JSObjectMakeConstructor(_ ctx: JSContextRef, _ jsClass: JSClassRef, _ callAsConstructor: JSObjectCallAsConstructorCallback) -> JSObjectRef |
| To | func JSObjectMakeConstructor(_ ctx: JSContextRef, _ jsClass: JSClassRef, _ callAsConstructor: JSObjectCallAsConstructorCallback!) -> JSObjectRef |
| Declaration | |
|---|---|
| From | func JSObjectMakeFunctionWithCallback(_ ctx: JSContextRef, _ name: JSStringRef, _ callAsFunction: JSObjectCallAsFunctionCallback) -> JSObjectRef |
| To | func JSObjectMakeFunctionWithCallback(_ ctx: JSContextRef, _ name: JSStringRef, _ callAsFunction: JSObjectCallAsFunctionCallback!) -> JSObjectRef |
Modified JSObjectSetPropertyCallback
| Declaration | |
|---|---|
| From | typealias JSObjectSetPropertyCallback = CFunctionPointer<((JSContextRef, JSObjectRef, JSStringRef, JSValueRef, UnsafeMutablePointer<JSValueRef>) -> Bool)> |
| To | typealias JSObjectSetPropertyCallback = (JSContextRef, JSObjectRef, JSStringRef, JSValueRef, UnsafeMutablePointer<JSValueRef>) -> Bool |