forked from cerc-io/plugeth
parent
d6625ac34d
commit
077353b47e
@ -255,8 +255,8 @@ func (b *bridge) Send(call otto.FunctionCall) (response otto.Value) {
|
|||||||
} else {
|
} else {
|
||||||
response, _ = resps.Get("0")
|
response, _ = resps.Get("0")
|
||||||
}
|
}
|
||||||
if fn := call.Argument(1).Object(); fn != nil && fn.Class() == "function" {
|
if fn := call.Argument(1); fn.Class() == "Function" {
|
||||||
fn.Call("apply", response)
|
fn.Call(otto.NullValue(), otto.NullValue(), response)
|
||||||
return otto.UndefinedValue()
|
return otto.UndefinedValue()
|
||||||
}
|
}
|
||||||
return response
|
return response
|
||||||
|
Loading…
Reference in New Issue
Block a user