diff --git a/console/bridge.go b/console/bridge.go index 06cb41d8085d48ff3701b28a0c471ec3671b49da..22ed7192bb4a9fc64eeee6abce2a10c4f8e50d97 100644 --- a/console/bridge.go +++ b/console/bridge.go @@ -255,8 +255,8 @@ func (b *bridge) Send(call otto.FunctionCall) (response otto.Value) { } else { response, _ = resps.Get("0") } - if fn := call.Argument(1).Object(); fn != nil && fn.Class() == "function" { - fn.Call("apply", response) + if fn := call.Argument(1); fn.Class() == "Function" { + fn.Call(otto.NullValue(), otto.NullValue(), response) return otto.UndefinedValue() } return response