☰
Index
Modules:
javascriptcore
,
javascriptcore/helpers
,
javascriptcore/jsbase
,
javascriptcore/jscontextref
,
javascriptcore/jsobjectref
,
javascriptcore/jsstringref
,
javascriptcore/jstypedarray
,
javascriptcore/jsvalueref
.
API symbols
`$`:
helpers: proc `$`(str: JSStringRef): string
evalScript:
helpers: proc evalScript(ctx: JSContextRef; script: string; thisObject: JSObjectRef = nil; sourceURL: string = ""; line: int = 1; exception: var JSValueRef): JSValueRef
JSBigIntCreateWithDouble:
jsvalueref: proc JSBigIntCreateWithDouble(ctx: JSContextRef; value: cdouble; exception: ptr JSValueRef): JSValueRef
JSBigIntCreateWithInt64:
jsvalueref: proc JSBigIntCreateWithInt64(ctx: JSContextRef; integer: int64; exception: ptr JSValueRef): JSValueRef
JSBigIntCreateWithString:
jsvalueref: proc JSBigIntCreateWithString(ctx: JSContextRef; str: JSStringRef; exception: ptr JSValueRef): JSValueRef
JSBigIntCreateWithUInt64:
jsvalueref: proc JSBigIntCreateWithUInt64(ctx: JSContextRef; integer: uint64; exception: ptr JSValueRef): JSValueRef
JSChar:
jsstringref: type JSChar
jscHeader:
jsbase: const jscHeader
JSCheckScriptSyntax:
jsbase: proc JSCheckScriptSyntax(ctx: JSContextRef; script: JSStringRef; sourceURL: JSStringRef; startingLineNumber: cint; exception: ptr JSValueRef): bool
jscIncludeDir:
javascriptcore: const jscIncludeDir
JSClassAttributes:
jsobjectref: type JSClassAttributes
JSClassCreate:
jsobjectref: proc JSClassCreate(definition: ptr JSClassDefinition): JSClassRef
JSClassDefinition:
jsobjectref: object JSClassDefinition
JSClassRef:
jsbase: type JSClassRef
JSClassRelease:
jsobjectref: proc JSClassRelease(jsClass: JSClassRef)
JSClassRetain:
jsobjectref: proc JSClassRetain(jsClass: JSClassRef): JSClassRef
JSContextGetGlobalContext:
jscontextref: proc JSContextGetGlobalContext(ctx: JSContextRef): JSGlobalContextRef
JSContextGetGlobalObject:
jscontextref: proc JSContextGetGlobalObject(ctx: JSContextRef): JSObjectRef
JSContextGetGroup:
jscontextref: proc JSContextGetGroup(ctx: JSContextRef): JSContextGroupRef
JSContextGroupCreate:
jscontextref: proc JSContextGroupCreate(): JSContextGroupRef
JSContextGroupRef:
jsbase: type JSContextGroupRef
JSContextGroupRelease:
jscontextref: proc JSContextGroupRelease(group: JSContextGroupRef)
JSContextGroupRetain:
jscontextref: proc JSContextGroupRetain(group: JSContextGroupRef): JSContextGroupRef
JSContextRef:
jsbase: type JSContextRef
jscStaticLib:
javascriptcore: const jscStaticLib
JSEvaluateScript:
jsbase: proc JSEvaluateScript(ctx: JSContextRef; script: JSStringRef; thisObject: JSObjectRef; sourceURL: JSStringRef; startingLineNumber: cint; exception: ptr JSValueRef): JSValueRef
JSGarbageCollect:
jsbase: proc JSGarbageCollect(ctx: JSContextRef)
JSGlobalContextCopyName:
jscontextref: proc JSGlobalContextCopyName(ctx: JSGlobalContextRef): JSStringRef
JSGlobalContextCreate:
jscontextref: proc JSGlobalContextCreate(globalObjectClass: JSClassRef): JSGlobalContextRef
JSGlobalContextCreateInGroup:
jscontextref: proc JSGlobalContextCreateInGroup(group: JSContextGroupRef; globalObjectClass: JSClassRef): JSGlobalContextRef
JSGlobalContextIsInspectable:
jscontextref: proc JSGlobalContextIsInspectable(ctx: JSGlobalContextRef): bool
JSGlobalContextRef:
jsbase: type JSGlobalContextRef
JSGlobalContextRelease:
jscontextref: proc JSGlobalContextRelease(ctx: JSGlobalContextRef)
JSGlobalContextRetain:
jscontextref: proc JSGlobalContextRetain(ctx: JSGlobalContextRef): JSGlobalContextRef
JSGlobalContextSetInspectable:
jscontextref: proc JSGlobalContextSetInspectable(ctx: JSGlobalContextRef; inspectable: bool)
JSGlobalContextSetName:
jscontextref: proc JSGlobalContextSetName(ctx: JSGlobalContextRef; name: JSStringRef)
JSObjectCallAsConstructor:
jsobjectref: proc JSObjectCallAsConstructor(ctx: JSContextRef; obj: JSObjectRef; argumentCount: csize_t; arguments: ptr JSValueRef; exception: ptr JSValueRef): JSObjectRef
JSObjectCallAsConstructorCallback:
jsobjectref: type JSObjectCallAsConstructorCallback
JSObjectCallAsFunction:
jsobjectref: proc JSObjectCallAsFunction(ctx: JSContextRef; obj: JSObjectRef; thisObject: JSObjectRef; argumentCount: csize_t; arguments: ptr JSValueRef; exception: ptr JSValueRef): JSValueRef
JSObjectCallAsFunctionCallback:
jsobjectref: type JSObjectCallAsFunctionCallback
JSObjectConvertToTypeCallback:
jsobjectref: type JSObjectConvertToTypeCallback
JSObjectCopyPropertyNames:
jsobjectref: proc JSObjectCopyPropertyNames(ctx: JSContextRef; obj: JSObjectRef): JSPropertyNameArrayRef
JSObjectDeleteProperty:
jsobjectref: proc JSObjectDeleteProperty(ctx: JSContextRef; obj: JSObjectRef; propertyName: JSStringRef; exception: ptr JSValueRef): bool
JSObjectDeletePropertyCallback:
jsobjectref: type JSObjectDeletePropertyCallback
JSObjectDeletePropertyForKey:
jsobjectref: proc JSObjectDeletePropertyForKey(ctx: JSContextRef; obj: JSObjectRef; propertyKey: JSValueRef; exception: ptr JSValueRef): bool
JSObjectFinalizeCallback:
jsobjectref: type JSObjectFinalizeCallback
JSObjectGetArrayBufferByteLength:
jstypedarray: proc JSObjectGetArrayBufferByteLength(ctx: JSContextRef; obj: JSObjectRef; exception: ptr JSValueRef): csize_t
JSObjectGetArrayBufferBytesPtr:
jstypedarray: proc JSObjectGetArrayBufferBytesPtr(ctx: JSContextRef; obj: JSObjectRef; exception: ptr JSValueRef): pointer
JSObjectGetPrivate:
jsobjectref: proc JSObjectGetPrivate(obj: JSObjectRef): pointer
JSObjectGetProperty:
jsobjectref: proc JSObjectGetProperty(ctx: JSContextRef; obj: JSObjectRef; propertyName: JSStringRef; exception: ptr JSValueRef): JSValueRef
JSObjectGetPropertyAtIndex:
jsobjectref: proc JSObjectGetPropertyAtIndex(ctx: JSContextRef; obj: JSObjectRef; propertyIndex: cuint; exception: ptr JSValueRef): JSValueRef
JSObjectGetPropertyCallback:
jsobjectref: type JSObjectGetPropertyCallback
JSObjectGetPropertyForKey:
jsobjectref: proc JSObjectGetPropertyForKey(ctx: JSContextRef; obj: JSObjectRef; propertyKey: JSValueRef; exception: ptr JSValueRef): JSValueRef
JSObjectGetPropertyNamesCallback:
jsobjectref: type JSObjectGetPropertyNamesCallback
JSObjectGetPrototype:
jsobjectref: proc JSObjectGetPrototype(ctx: JSContextRef; obj: JSObjectRef): JSValueRef
JSObjectGetTypedArrayBuffer:
jstypedarray: proc JSObjectGetTypedArrayBuffer(ctx: JSContextRef; obj: JSObjectRef; exception: ptr JSValueRef): JSObjectRef
JSObjectGetTypedArrayByteLength:
jstypedarray: proc JSObjectGetTypedArrayByteLength(ctx: JSContextRef; obj: JSObjectRef; exception: ptr JSValueRef): csize_t
JSObjectGetTypedArrayByteOffset:
jstypedarray: proc JSObjectGetTypedArrayByteOffset(ctx: JSContextRef; obj: JSObjectRef; exception: ptr JSValueRef): csize_t
JSObjectGetTypedArrayBytesPtr:
jstypedarray: proc JSObjectGetTypedArrayBytesPtr(ctx: JSContextRef; obj: JSObjectRef; exception: ptr JSValueRef): pointer
JSObjectGetTypedArrayLength:
jstypedarray: proc JSObjectGetTypedArrayLength(ctx: JSContextRef; obj: JSObjectRef; exception: ptr JSValueRef): csize_t
JSObjectHasInstanceCallback:
jsobjectref: type JSObjectHasInstanceCallback
JSObjectHasProperty:
jsobjectref: proc JSObjectHasProperty(ctx: JSContextRef; obj: JSObjectRef; propertyName: JSStringRef): bool
JSObjectHasPropertyCallback:
jsobjectref: type JSObjectHasPropertyCallback
JSObjectHasPropertyForKey:
jsobjectref: proc JSObjectHasPropertyForKey(ctx: JSContextRef; obj: JSObjectRef; propertyKey: JSValueRef; exception: ptr JSValueRef): bool
JSObjectInitializeCallback:
jsobjectref: type JSObjectInitializeCallback
JSObjectIsConstructor:
jsobjectref: proc JSObjectIsConstructor(ctx: JSContextRef; obj: JSObjectRef): bool
JSObjectIsFunction:
jsobjectref: proc JSObjectIsFunction(ctx: JSContextRef; obj: JSObjectRef): bool
JSObjectMake:
jsobjectref: proc JSObjectMake(ctx: JSContextRef; jsClass: JSClassRef; data: pointer): JSObjectRef
JSObjectMakeArray:
jsobjectref: proc JSObjectMakeArray(ctx: JSContextRef; argumentCount: csize_t; arguments: ptr JSValueRef; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeArrayBufferWithBytesNoCopy:
jstypedarray: proc JSObjectMakeArrayBufferWithBytesNoCopy(ctx: JSContextRef; bytes: pointer; byteLength: csize_t; bytesDeallocator: JSTypedArrayBytesDeallocator; deallocatorContext: pointer; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeConstructor:
jsobjectref: proc JSObjectMakeConstructor(ctx: JSContextRef; jsClass: JSClassRef; callAsConstructor: JSObjectCallAsConstructorCallback): JSObjectRef
JSObjectMakeDate:
jsobjectref: proc JSObjectMakeDate(ctx: JSContextRef; argumentCount: csize_t; arguments: ptr JSValueRef; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeDeferredPromise:
jsobjectref: proc JSObjectMakeDeferredPromise(ctx: JSContextRef; resolve: ptr JSObjectRef; reject: ptr JSObjectRef; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeError:
jsobjectref: proc JSObjectMakeError(ctx: JSContextRef; argumentCount: csize_t; arguments: ptr JSValueRef; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeFunction:
jsobjectref: proc JSObjectMakeFunction(ctx: JSContextRef; name: JSStringRef; parameterCount: cuint; parameterNames: ptr JSStringRef; body: JSStringRef; sourceURL: JSStringRef; startingLineNumber: cint; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeFunctionWithCallback:
jsobjectref: proc JSObjectMakeFunctionWithCallback(ctx: JSContextRef; name: JSStringRef; callAsFunction: JSObjectCallAsFunctionCallback): JSObjectRef
JSObjectMakeRegExp:
jsobjectref: proc JSObjectMakeRegExp(ctx: JSContextRef; argumentCount: csize_t; arguments: ptr JSValueRef; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeTypedArray:
jstypedarray: proc JSObjectMakeTypedArray(ctx: JSContextRef; arrayType: JSTypedArrayType; length: csize_t; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeTypedArrayWithArrayBuffer:
jstypedarray: proc JSObjectMakeTypedArrayWithArrayBuffer(ctx: JSContextRef; arrayType: JSTypedArrayType; buffer: JSObjectRef; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeTypedArrayWithArrayBufferAndOffset:
jstypedarray: proc JSObjectMakeTypedArrayWithArrayBufferAndOffset(ctx: JSContextRef; arrayType: JSTypedArrayType; buffer: JSObjectRef; byteOffset: csize_t; length: csize_t; exception: ptr JSValueRef): JSObjectRef
JSObjectMakeTypedArrayWithBytesNoCopy:
jstypedarray: proc JSObjectMakeTypedArrayWithBytesNoCopy(ctx: JSContextRef; arrayType: JSTypedArrayType; bytes: pointer; byteLength: csize_t; bytesDeallocator: JSTypedArrayBytesDeallocator; deallocatorContext: pointer; exception: ptr JSValueRef): JSObjectRef
JSObjectRef:
jsbase: type JSObjectRef
JSObjectSetPrivate:
jsobjectref: proc JSObjectSetPrivate(obj: JSObjectRef; data: pointer): bool
JSObjectSetProperty:
jsobjectref: proc JSObjectSetProperty(ctx: JSContextRef; obj: JSObjectRef; propertyName: JSStringRef; value: JSValueRef; attributes: JSPropertyAttributes; exception: ptr JSValueRef)
JSObjectSetPropertyAtIndex:
jsobjectref: proc JSObjectSetPropertyAtIndex(ctx: JSContextRef; obj: JSObjectRef; propertyIndex: cuint; value: JSValueRef; exception: ptr JSValueRef)
JSObjectSetPropertyCallback:
jsobjectref: type JSObjectSetPropertyCallback
JSObjectSetPropertyForKey:
jsobjectref: proc JSObjectSetPropertyForKey(ctx: JSContextRef; obj: JSObjectRef; propertyKey: JSValueRef; value: JSValueRef; attributes: JSPropertyAttributes; exception: ptr JSValueRef)
JSObjectSetPrototype:
jsobjectref: proc JSObjectSetPrototype(ctx: JSContextRef; obj: JSObjectRef; value: JSValueRef)
JSPropertyAttributes:
jsobjectref: type JSPropertyAttributes
JSPropertyNameAccumulatorAddName:
jsobjectref: proc JSPropertyNameAccumulatorAddName(accumulator: JSPropertyNameAccumulatorRef; propertyName: JSStringRef)
JSPropertyNameAccumulatorRef:
jsbase: type JSPropertyNameAccumulatorRef
JSPropertyNameArrayGetCount:
jsobjectref: proc JSPropertyNameArrayGetCount(array: JSPropertyNameArrayRef): csize_t
JSPropertyNameArrayGetNameAtIndex:
jsobjectref: proc JSPropertyNameArrayGetNameAtIndex(array: JSPropertyNameArrayRef; index: csize_t): JSStringRef
JSPropertyNameArrayRef:
jsbase: type JSPropertyNameArrayRef
JSPropertyNameArrayRelease:
jsobjectref: proc JSPropertyNameArrayRelease(array: JSPropertyNameArrayRef)
JSPropertyNameArrayRetain:
jsobjectref: proc JSPropertyNameArrayRetain(array: JSPropertyNameArrayRef): JSPropertyNameArrayRef
JSRelationCondition:
jsvalueref: enum JSRelationCondition
JSStaticFunction:
jsobjectref: object JSStaticFunction
JSStaticValue:
jsobjectref: object JSStaticValue
JSStringCreateWithCharacters:
jsstringref: proc JSStringCreateWithCharacters(chars: ptr JSChar; numChars: csize_t): JSStringRef
JSStringCreateWithUTF8CString:
jsstringref: proc JSStringCreateWithUTF8CString(str: cstring): JSStringRef
JSStringGetCharactersPtr:
jsstringref: proc JSStringGetCharactersPtr(str: JSStringRef): ptr JSChar
JSStringGetLength:
jsstringref: proc JSStringGetLength(str: JSStringRef): csize_t
JSStringGetMaximumUTF8CStringSize:
jsstringref: proc JSStringGetMaximumUTF8CStringSize(str: JSStringRef): csize_t
JSStringGetUTF8CString:
jsstringref: proc JSStringGetUTF8CString(str: JSStringRef; buffer: cstring; bufferSize: csize_t): csize_t
JSStringIsEqual:
jsstringref: proc JSStringIsEqual(a, b: JSStringRef): bool
JSStringIsEqualToUTF8CString:
jsstringref: proc JSStringIsEqualToUTF8CString(a: JSStringRef; b: cstring): bool
JSStringRef:
jsbase: type JSStringRef
JSStringRelease:
jsstringref: proc JSStringRelease(str: JSStringRef)
JSStringRetain:
jsstringref: proc JSStringRetain(str: JSStringRef): JSStringRef
JSType:
jsvalueref: enum JSType
JSTypedArrayBytesDeallocator:
jsbase: type JSTypedArrayBytesDeallocator
JSTypedArrayType:
jsvalueref: enum JSTypedArrayType
JSValueCompare:
jsvalueref: proc JSValueCompare(ctx: JSContextRef; left, right: JSValueRef; exception: ptr JSValueRef): JSRelationCondition
JSValueCompareDouble:
jsvalueref: proc JSValueCompareDouble(ctx: JSContextRef; left: JSValueRef; right: cdouble; exception: ptr JSValueRef): JSRelationCondition
JSValueCompareInt64:
jsvalueref: proc JSValueCompareInt64(ctx: JSContextRef; left: JSValueRef; right: int64; exception: ptr JSValueRef): JSRelationCondition
JSValueCompareUInt64:
jsvalueref: proc JSValueCompareUInt64(ctx: JSContextRef; left: JSValueRef; right: uint64; exception: ptr JSValueRef): JSRelationCondition
JSValueCreateJSONString:
jsvalueref: proc JSValueCreateJSONString(ctx: JSContextRef; value: JSValueRef; indent: cuint; exception: ptr JSValueRef): JSStringRef
JSValueGetType:
jsvalueref: proc JSValueGetType(ctx: JSContextRef; value: JSValueRef): JSType
JSValueGetTypedArrayType:
jsvalueref: proc JSValueGetTypedArrayType(ctx: JSContextRef; value: JSValueRef; exception: ptr JSValueRef): JSTypedArrayType
JSValueIsArray:
jsvalueref: proc JSValueIsArray(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsBigInt:
jsvalueref: proc JSValueIsBigInt(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsBoolean:
jsvalueref: proc JSValueIsBoolean(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsDate:
jsvalueref: proc JSValueIsDate(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsEqual:
jsvalueref: proc JSValueIsEqual(ctx: JSContextRef; a, b: JSValueRef; exception: ptr JSValueRef): bool
JSValueIsInstanceOfConstructor:
jsvalueref: proc JSValueIsInstanceOfConstructor(ctx: JSContextRef; value: JSValueRef; constructor: JSObjectRef; exception: ptr JSValueRef): bool
JSValueIsNull:
jsvalueref: proc JSValueIsNull(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsNumber:
jsvalueref: proc JSValueIsNumber(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsObject:
jsvalueref: proc JSValueIsObject(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsObjectOfClass:
jsvalueref: proc JSValueIsObjectOfClass(ctx: JSContextRef; value: JSValueRef; jsClass: JSClassRef): bool
JSValueIsStrictEqual:
jsvalueref: proc JSValueIsStrictEqual(ctx: JSContextRef; a, b: JSValueRef): bool
JSValueIsString:
jsvalueref: proc JSValueIsString(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsSymbol:
jsvalueref: proc JSValueIsSymbol(ctx: JSContextRef; value: JSValueRef): bool
JSValueIsUndefined:
jsvalueref: proc JSValueIsUndefined(ctx: JSContextRef; value: JSValueRef): bool
JSValueMakeBoolean:
jsvalueref: proc JSValueMakeBoolean(ctx: JSContextRef; boolean: bool): JSValueRef
JSValueMakeFromJSONString:
jsvalueref: proc JSValueMakeFromJSONString(ctx: JSContextRef; str: JSStringRef): JSValueRef
JSValueMakeNull:
jsvalueref: proc JSValueMakeNull(ctx: JSContextRef): JSValueRef
JSValueMakeNumber:
jsvalueref: proc JSValueMakeNumber(ctx: JSContextRef; number: cdouble): JSValueRef
JSValueMakeString:
jsvalueref: proc JSValueMakeString(ctx: JSContextRef; str: JSStringRef): JSValueRef
JSValueMakeSymbol:
jsvalueref: proc JSValueMakeSymbol(ctx: JSContextRef; description: JSStringRef): JSValueRef
JSValueMakeUndefined:
jsvalueref: proc JSValueMakeUndefined(ctx: JSContextRef): JSValueRef
JSValueProtect:
jsvalueref: proc JSValueProtect(ctx: JSContextRef; value: JSValueRef)
JSValueRef:
jsbase: type JSValueRef
JSValueToBoolean:
jsvalueref: proc JSValueToBoolean(ctx: JSContextRef; value: JSValueRef): bool
JSValueToInt32:
jsvalueref: proc JSValueToInt32(ctx: JSContextRef; value: JSValueRef; exception: ptr JSValueRef): int32
JSValueToInt64:
jsvalueref: proc JSValueToInt64(ctx: JSContextRef; value: JSValueRef; exception: ptr JSValueRef): int64
JSValueToNumber:
jsvalueref: proc JSValueToNumber(ctx: JSContextRef; value: JSValueRef; exception: ptr JSValueRef): cdouble
JSValueToObject:
jsvalueref: proc JSValueToObject(ctx: JSContextRef; value: JSValueRef; exception: ptr JSValueRef): JSObjectRef
JSValueToStringCopy:
jsvalueref: proc JSValueToStringCopy(ctx: JSContextRef; value: JSValueRef; exception: ptr JSValueRef): JSStringRef
JSValueToUInt32:
jsvalueref: proc JSValueToUInt32(ctx: JSContextRef; value: JSValueRef; exception: ptr JSValueRef): uint32
JSValueToUInt64:
jsvalueref: proc JSValueToUInt64(ctx: JSContextRef; value: JSValueRef; exception: ptr JSValueRef): uint64
JSValueUnprotect:
jsvalueref: proc JSValueUnprotect(ctx: JSContextRef; value: JSValueRef)
kJSClassAttributeNoAutomaticPrototype:
jsobjectref: const kJSClassAttributeNoAutomaticPrototype
kJSClassAttributeNone:
jsobjectref: const kJSClassAttributeNone
kJSClassDefinitionEmpty:
jsobjectref: const kJSClassDefinitionEmpty
kJSPropertyAttributeDontDelete:
jsobjectref: const kJSPropertyAttributeDontDelete
kJSPropertyAttributeDontEnum:
jsobjectref: const kJSPropertyAttributeDontEnum
kJSPropertyAttributeNone:
jsobjectref: const kJSPropertyAttributeNone
kJSPropertyAttributeReadOnly:
jsobjectref: const kJSPropertyAttributeReadOnly
newJSString:
helpers: proc newJSString(s: string): JSStringRef
OpaqueJSClass:
jsbase: object OpaqueJSClass
OpaqueJSContext:
jsbase: object OpaqueJSContext
OpaqueJSContextGroup:
jsbase: object OpaqueJSContextGroup
OpaqueJSPropertyNameAccumulator:
jsbase: object OpaqueJSPropertyNameAccumulator
OpaqueJSPropertyNameArray:
jsbase: object OpaqueJSPropertyNameArray
OpaqueJSString:
jsbase: object OpaqueJSString
OpaqueJSValue:
jsbase: object OpaqueJSValue
withGlobalContext:
helpers: template withGlobalContext(ctx: untyped; body: untyped)