update
This commit is contained in:
+2
-4
@@ -37,10 +37,8 @@ func init123() {
|
|||||||
result, _ = otto.ToValue(o.Get(key, value))
|
result, _ = otto.ToValue(o.Get(key, value))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
set := func(call otto.FunctionCall) interface{} {
|
set := func(key otto.Value, value otto.Value) interface{} {
|
||||||
key := call.Argument(0).String()
|
o.Set(key.String(), value.String())
|
||||||
value := call.Argument(1).String()
|
|
||||||
o.Set(key, value)
|
|
||||||
return otto.Value{}
|
return otto.Value{}
|
||||||
}
|
}
|
||||||
push := func(call otto.Value) interface{} {
|
push := func(call otto.Value) interface{} {
|
||||||
|
|||||||
Reference in New Issue
Block a user