More callback refactoring (#713) #718

Merged
lhchavez merged 1 commits from cherry-pick-413302603-release-0.28 into release-0.28 2020-12-13 13:08:27 -06:00

1 Commits

Author SHA1 Message Date
lhchavez 40b6026d3a More callback refactoring (#713)
This change:

* Gets rid of the `.toC()` functions for Options objects, since they
  were redundant with the `populateXxxOptions()`.
* Adds support for `errorTarget` to the `RemoteOptions`, since they are
  used in the same stack for some functions (like `Fetch()`). Now for
  those cases, the error returned by the callback will be preserved
  as-is.

(cherry picked from commit 10c67474a8)
2020-12-10 18:24:37 -08:00