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

Shortcut the production of Object.Value()

This commit is contained in:
Robert Krimen
2012-10-11 18:22:00 -07:00
parent c57edbfe2b
commit 02929cbeb1
3 changed files with 10 additions and 4 deletions

View File

@@ -1826,4 +1826,7 @@ func TestAPI(t *testing.T) {
Is(result, "27")
result, _ = value.Call(def, 3)
Is(result, "30")
object = value.Object() // Object xyzzy
result, _ = object.Value().Call(def, 3)
Is(result, "30")
}