javascriptcore.c.types
C types for javascriptcore6 library
Types 26
Enum values to specify a mode to check for syntax errors in [javascriptcore.context.Context.checkSyntax].
Enum values to specify the result of [javascriptcore.context.Context.checkSyntax].
Enum values for options types.
Possible types of the elements contained in a typed array.
Flags used when defining properties with [javascriptcore.value.Value.objectDefinePropertyData] and [javascriptcore.value.Value.objectDefinePropertyAccessor].
A JSSClass represents a custom JavaScript class registered by the user in a #JSCContext. It allows to create new JavaScripts objects whose instances are created by the user using this API. It's possible to add constructors, properties and methods for a JSSClass by providing #GCallback<!-- -->s to implement them.
GObjectClass parentClassVirtual table for a JSCClass. This can be optionally used when registering a #JSCClass in a #JSCContext to provide a custom implementation for the class. All virtual functions are optional and can be set to null to fallback to the default implementation.
JSCClassGetPropertyFunction getPropertya #JSCClassGetPropertyFunction for getting a property.JSCClassSetPropertyFunction setPropertya #JSCClassSetPropertyFunction for setting a property.JSCClassHasPropertyFunction hasPropertya #JSCClassHasPropertyFunction for querying a property.JSCClassDeletePropertyFunction deletePropertya #JSCClassDeletePropertyFunction for deleting a property.JSCClassEnumeratePropertiesFunction enumeratePropertiesa #JSCClassEnumeratePropertiesFunction for enumerating properties.void function() JscReserved0void function() JscReserved1void function() JscReserved2void function() JscReserved3void function() JscReserved4void function() JscReserved5void function() JscReserved6void function() JscReserved7JSCContext represents a JavaScript execution context, where all operations take place and where the values will be associated.
When a new context is created, a global object is allocated and the built-in JavaScript objects (Object, Function, String, Array) are populated. You can execute JavaScript in the context by using [javascriptcore.context.Context.evaluate] or [javascriptcore.context.Context.evaluateWithSourceUri]. It's also possible to register custom objects in the context with [javascriptcore.context.Context.registerClass].
GObjectClass parentClassGObjectClass parentClassJSCException represents a JavaScript exception.
JSCValue represents a reference to a value in a #JSCContext. The JSCValue protects the referenced value from being garbage collected.
GObjectClass parentClassJSCVirtualMachine represents a group of JSCContext<!-- -->s. It allows concurrent JavaScript execution by creating a different instance of JSCVirtualMachine in each thread.
To create a group of JSCContext<!-- -->s pass the same JSCVirtualMachine instance to every JSCContext constructor.
GObjectClass parentClassJSCWeakValue represents a weak reference to a value in a #JSCContext. It can be used to keep a reference to a JavaScript value without protecting it from being garbage collected and without referencing the #JSCContext either.
GObjectClass parentClass