This commit is contained in:
cdle
2021-10-16 19:25:33 +08:00
parent 808a8bc60d
commit b37200b468
+2 -4
View File
@@ -37,10 +37,8 @@ func init123() {
result, _ = otto.ToValue(o.Get(key, value))
return
}
set := func(call otto.FunctionCall) interface{} {
key := call.Argument(0).String()
value := call.Argument(1).String()
o.Set(key, value)
set := func(key otto.Value, value otto.Value) interface{} {
o.Set(key.String(), value.String())
return otto.Value{}
}
push := func(call otto.Value) interface{} {