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.