1
0
forked from x/icebergs

fix yac.stack

This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-01-02 18:36:22 +08:00
parent 2727a198ae
commit 4e2d515c9e
2 changed files with 1 additions and 3 deletions

View File

@ -452,8 +452,6 @@ func (s *Stack) calls(m *ice.Message, obj Any, key string, cb func(*Frame, Funct
}
m.Debug("calls %s %s %s %#v", Format(s), Format(obj), key, arg)
kit.For(arg, func(i int, v Any) { arg[i] = Trans(arg[i]) })
m.Debug("calls %s %s %s %s", Format(s), Format(obj), key, Format(arg...))
m.Debug("calls %s %s %s %#v", Format(s), Format(obj), key, arg)
return Wraps(obj(m, kit.Format(key), arg...))
case func():
obj()

View File

@ -270,7 +270,7 @@ func Module(prefix string, arg ...Any) {
m, arg = v, arg[1:]
}
}
if v, ok := list[key]; ok {
if v, ok := list[kit.LowerCapital(key)]; ok {
switch v := v.(type) {
case func(m *Message):
v(m)