vendor: update dependencies with github.com/kardianos/govendor
This commit is contained in:
3
vendor/github.com/robertkrimen/otto/value_boolean.go
generated
vendored
3
vendor/github.com/robertkrimen/otto/value_boolean.go
generated
vendored
@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
"reflect"
|
||||
"unicode/utf16"
|
||||
)
|
||||
|
||||
func (value Value) bool() bool {
|
||||
@ -32,6 +33,8 @@ func (value Value) bool() bool {
|
||||
return true
|
||||
case string:
|
||||
return 0 != len(value)
|
||||
case []uint16:
|
||||
return 0 != len(utf16.Decode(value))
|
||||
}
|
||||
if value.IsObject() {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user