Settings
Help

Crate javascriptcore6

Crate javascriptcore6 

Source

Re-exports§

pub use ffi;
pub use glib;

Modules§

functions

Structs§

Class
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 #GCallbacks to implement them.
Context
JSCContext represents a JavaScript execution context, where all operations take place and where the values will be associated.
Exception
JSCException represents a JavaScript exception.
Value
JSCValue represents a reference to a value in a #JSCContext. The JSCValue protects the referenced value from being garbage collected.
ValuePropertyFlags
Flags used when defining properties with jsc_value_object_define_property_data() and jsc_value_object_define_property_accessor().
VirtualMachine
JSCVirtualMachine represents a group of JSCContexts. It allows concurrent JavaScript execution by creating a different instance of JSCVirtualMachine in each thread.
WeakValue
JSCWeakValue 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.

Enums§

CheckSyntaxMode
Enum values to specify a mode to check for syntax errors in jsc_context_check_syntax().
CheckSyntaxResult
Enum values to specify the result of jsc_context_check_syntax().
OptionType
Enum values for options types.
TypedArrayType
Possible types of the elements contained in a typed array.

Statics§

OPTIONS_USE_DFG
Allows the DFG JIT to be used if true. Option type: OptionType::Boolean Default value: true.
OPTIONS_USE_FTL
Allows the FTL JIT to be used if true. Option type: OptionType::Boolean Default value: true.
OPTIONS_USE_JIT
Allows the executable pages to be allocated for JIT and thunks if true. Option type: OptionType::Boolean Default value: true.
OPTIONS_USE_LLINT
Allows the LLINT to be used if true. Option type: OptionType::Boolean Default value: true.