aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gopkg.in/olebedev/go-duktape.v3/conts.go
blob: f3dbd8bc8465b68fb06567a1141e8566210a7d07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package duktape

const (
    CompileEval uint = 1 << iota
    CompileFunction
    CompileStrict
    CompileSafe
    CompileNoResult
    CompileNoSource
    CompileStrlen
)

const (
    TypeNone Type = iota
    TypeUndefined
    TypeNull
    TypeBoolean
    TypeNumber
    TypeString
    TypeObject
    TypeBuffer
    TypePointer
    TypeLightFunc
)

const (
    TypeMaskNone uint = 1 << iota
    TypeMaskUndefined
    TypeMaskNull
    TypeMaskBoolean
    TypeMaskNumber
    TypeMaskString
    TypeMaskObject
    TypeMaskBuffer
    TypeMaskPointer
    TypeMaskLightFunc
)

const (
    EnumIncludeNonenumerable uint = 1 << iota
    EnumIncludeInternal
    EnumOwnPropertiesOnly
    EnumArrayIndicesOnly
    EnumSortArrayIndices
    NoProxyBehavior
)

const (
    ErrNone int = 0

    // Internal to Duktape
    ErrUnimplemented int = 50 + iota
    ErrUnsupported
    ErrInternal
    ErrAlloc
    ErrAssertion
    ErrAPI
    ErrUncaughtError
)

const (
    // Common prototypes
    ErrError int = 1 + iota
    ErrEval
    ErrRange
    ErrReference
    ErrSyntax
    ErrType
    ErrURI
)

const (
    // Returned error values
    ErrRetUnimplemented int = -(ErrUnimplemented + iota)
    ErrRetUnsupported
    ErrRetInternal
    ErrRetAlloc
    ErrRetAssertion
    ErrRetAPI
    ErrRetUncaughtError
)

const (
    ErrRetError int = -(ErrError + iota)
    ErrRetEval
    ErrRetRange
    ErrRetReference
    ErrRetSyntax
    ErrRetType
    ErrRetURI
)

const (
    ExecSuccess = iota
    ExecError
)

const (
    LogTrace int = iota
    LogDebug
    LogInfo
    LogWarn
    LogError
    LogFatal
)

const (
    BufobjDuktapeAuffer     = 0
    BufobjNodejsAuffer      = 1
    BufobjArraybuffer       = 2
    BufobjDataview          = 3
    BufobjInt8array         = 4
    BufobjUint8array        = 5
    BufobjUint8clampedarray = 6
    BufobjInt16array        = 7
    BufobjUint16array       = 8
    BufobjInt32array        = 9
    BufobjUint32array       = 10
    BufobjFloat32array      = 11
    BufobjFloat64array      = 12
)