aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/robertkrimen/otto/type_boolean.go
blob: afc45c69b3cbb08c14aa85497828895aa87ae5a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package otto

import (
    "strconv"
)

func (runtime *_runtime) newBooleanObject(value Value) *_object {
    return runtime.newPrimitiveObject("Boolean", toValue_bool(value.bool()))
}

func booleanToString(value bool) string {
    return strconv.FormatBool(value)
}