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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user