fix null arg

This commit is contained in:
Egor Aristov 2026-03-31 11:55:11 +03:00
parent 0554446b83
commit e5314ba48f
2 changed files with 12 additions and 0 deletions

View File

@ -234,6 +234,10 @@ func (ipc *ipcCommon) Call(method string, params ...any) (Vals, error) {
ipc.pendingCalls[id] = call
ipc.mu.Unlock()
if params == nil {
params = make([]any, 0)
}
for i := range params {
params[i] = ipc.serialize(params[i])
}

8
lib/ts/Makefile Normal file
View File

@ -0,0 +1,8 @@
default:
publish:
npm run build
npm publish
.PHONY: publish