mirror of
https://github.com/status-im/status-go.git
synced 2025-01-12 15:45:07 +00:00
e4cbce12c4
* Update `github.com/ethereum/go-ethereum` package to 1.8.1 branch. Part of #638 * Fix code due to some signature changes. Part of #638 * use upstream for whisper backend * Add patch to downgrade usage of Whisper v6 to v5 in some geth 1.8.1 vendor files. Part of #638 * Take into account the DNS rebinding protection introduced in 1.8.0 by adding exception for localhost. Part of #638 * Add patches required for cross-compiled builds starting with geth 1.8.0. Only applied during build. Part of #638 * Update expected JSON result in `TestRegressionGetTransactionReceipt()` and `TestCallRawResultGetTransactionReceipt()`. Part of #665 * Fix some failing e2e tests. Part of #638 * Address comments in PR #702. Part of #638
122 lines
1.7 KiB
Go
122 lines
1.7 KiB
Go
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
|
|
)
|