fix null arg
This commit is contained in:
parent
0554446b83
commit
e5314ba48f
@ -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
8
lib/ts/Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
default:
|
||||
|
||||
publish:
|
||||
npm run build
|
||||
npm publish
|
||||
|
||||
.PHONY: publish
|
||||
Loading…
x
Reference in New Issue
Block a user