1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Add Object.getPrototypeOf

This commit is contained in:
Robert Krimen
2013-03-05 12:03:33 -08:00
parent 299495ba0a
commit f3da7237f2
4 changed files with 28 additions and 0 deletions

View File

@@ -250,6 +250,7 @@ func toValue_reflectValuePanic(value interface{}, kind reflect.Kind) {
}
}
// TODO toValue(nil)?
func toValue(value interface{}) Value {
switch value := value.(type) {
case Value: