-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsonrpc2: do not panic when sending unmarshalable params
If params given to (*Connection).Call is not JSON-marshalable, Call returns immediately an *AsyncCall instance containing the corresponding error, but its ctx field is not initialized. This produces a panic later in golang.org/x/exp/event.New, as it does not expect a nil context.Context. Fixes golang/go#61654. Change-Id: I6464ab5fde85670267b25821e0b57af04c331c8c Reviewed-on: https://go-review.googlesource.com/c/exp/+/516556 Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com>
- Loading branch information
Showing
2 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters