aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/obscuren/otto/type_boolean.go
blob: c24409de12fcd187045ba96f8cf74825a8f7707f (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(toBoolean(value)))
}

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