This commit is contained in:
cdle
2021-10-29 15:28:01 +08:00
parent cb948599dd
commit 853eb9d4b1
2 changed files with 200 additions and 231 deletions
+7
View File
@@ -215,6 +215,13 @@ func init123() {
}
return otto.Value{}
})
vm.Set("cancall", func(name otto.Value) interface{} {
key := name.String()
if _, ok := OttoFuncs[key]; ok {
return otto.TrueValue()
}
return otto.FalseValue()
})
vm.Set("Delete", func() {
s.Delete()
})
+193 -231
View File
File diff suppressed because one or more lines are too long