mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-19 16:20:53 +00:00
5b5cae693f
Events with just 1 argument fail before this change Former-commit-id: 69cbb51c56054208417e464dc6e46a94ccb3bbeb [formerly fbb03244929beb0ce8f9c607ce33d107e8319b89] Former-commit-id: 984154c1ba79f1fe8bf0106a604b2765ea312079
31 lines
495 B
Go
31 lines
495 B
Go
package otto
|
|
|
|
import ()
|
|
|
|
type _resultKind int
|
|
|
|
const (
|
|
resultNormal _resultKind = iota
|
|
resultReturn
|
|
resultBreak
|
|
resultContinue
|
|
)
|
|
|
|
type _result struct {
|
|
kind _resultKind
|
|
value Value
|
|
target string
|
|
}
|
|
|
|
func newReturnResult(value Value) _result {
|
|
return _result{resultReturn, value, ""}
|
|
}
|
|
|
|
func newContinueResult(target string) _result {
|
|
return _result{resultContinue, emptyValue, target}
|
|
}
|
|
|
|
func newBreakResult(target string) _result {
|
|
return _result{resultBreak, emptyValue, target}
|
|
}
|