1
0
mirror of https://github.com/robertkrimen/otto synced 2025-09-28 18:45:22 +08:00
otto/type_boolean.go
2012-10-05 18:47:53 -07:00

14 lines
263 B
Go

package otto
import (
"strconv"
)
func (runtime *_runtime) newBooleanObject(value Value) *_object {
return runtime.newPrimitiveObject("Boolean", toValue(toBoolean(value)))
}
func booleanToString(value bool) string {
return strconv.FormatBool(value)
}