Enums

Details

class JavaScriptCore.CheckSyntaxMode(value)

Bases: GLib.Enum

Enum values to specify a mode to check for syntax errors in JavaScriptCore.Context.check_syntax().

SCRIPT = 0

mode to check syntax of a script

MODULE = 1

mode to check syntax of a module

class JavaScriptCore.CheckSyntaxResult(value)

Bases: GLib.Enum

Enum values to specify the result of JavaScriptCore.Context.check_syntax().

SUCCESS = 0

no errors

RECOVERABLE_ERROR = 1

recoverable syntax error

IRRECOVERABLE_ERROR = 2

irrecoverable syntax error

UNTERMINATED_LITERAL_ERROR = 3

unterminated literal error

OUT_OF_MEMORY_ERROR = 4

out of memory error

STACK_OVERFLOW_ERROR = 5

stack overflow error

class JavaScriptCore.OptionType(value)

Bases: GLib.Enum

Enum values for options types.

New in version 2.24.

BOOLEAN = 0

A bool option type.

INT = 1

A int option type.

UINT = 2

A int option type.

SIZE = 3

A #gsize options type.

DOUBLE = 4

A float options type.

STRING = 5

A string option type.

RANGE_STRING = 6

A range string option type.

class JavaScriptCore.TypedArrayType(value)

Bases: GLib.Enum

Possible types of the elements contained in a typed array.

New in version 2.38.

NONE = 0

Not a typed array, or type unsupported.

INT8 = 1

Array elements are 8-bit signed integers (int8_t).

FLOAT32 = 10

Array elements are 32-bit floating point numbers (float).

FLOAT64 = 11

Array elements are 64-bit floating point numbers (double).

INT16 = 2

Array elements are 16-bit signed integers (int16_t).

INT32 = 3

Array elements are 32-bit signed integers (int32_t).

INT64 = 4

Array elements are 64-bit signed integers (int64_t).

UINT8 = 5

Array elements are 8-bit unsigned integers (uint8_t).

UINT8_CLAMPED = 6

Array elements are 8-bit unsigned integers (uint8_t).

UINT16 = 7

Array elements are 16-bit unsigned integers (uint16_t).

UINT32 = 8

Array elements are 32-bit unsigned integers (uint32_t).

UINT64 = 9

Array elements are 64-bit unsigned integers (uint64_t).