Fix callback adapter for ready() methods.
Review Request #12080 — Created Feb. 23, 2022 and submitted — Latest diff uploaded
The boilerplate that I used for all the callbacks-to-promises
conversions works in almost every case, but theready()
method is a
bit special because the callback name isready
instead ofsuccess
.
ThepromiseToCallbacks
adapter handled this, but the call sites inside
of theready
methods weren't testing for that callback name, so it
wouldn't work properly when calling in the old style.
Used an extension that called
ready()
on a draft review using the
callbacks style instead of promises. Saw that it worked correctly.