diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/robertkrimen/otto/value_primitive.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/robertkrimen/otto/value_primitive.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Godeps/_workspace/src/github.com/robertkrimen/otto/value_primitive.go b/Godeps/_workspace/src/github.com/robertkrimen/otto/value_primitive.go deleted file mode 100644 index 11ed329d1..000000000 --- a/Godeps/_workspace/src/github.com/robertkrimen/otto/value_primitive.go +++ /dev/null @@ -1,23 +0,0 @@ -package otto - -func toStringPrimitive(value Value) Value { - return _toPrimitive(value, defaultValueHintString) -} - -func toNumberPrimitive(value Value) Value { - return _toPrimitive(value, defaultValueHintNumber) -} - -func toPrimitive(value Value) Value { - return _toPrimitive(value, defaultValueNoHint) -} - -func _toPrimitive(value Value, hint _defaultValueHint) Value { - switch value.kind { - case valueNull, valueUndefined, valueNumber, valueString, valueBoolean: - return value - case valueObject: - return value._object().DefaultValue(hint) - } - panic(hereBeDragons(value.kind, value)) -} |