mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:01:20 +00:00
[ VM / Service ] Remove bool return value for service RPC handlers
Returning 'false' from a RPC handler in service.cc results in the VM shutting down due to an UNIMPLEMENTED error. Since we always return 'true', even in the case of RPC errors, and the TODO to handle 'false' returns is over 6 years old, RPC handlers should just have a void return. Example: invoking getSourceReport on an AOT VM should just return a RPC error, but 'false' was being returned from GetSourceReport causing the VM to shutdown. Fixes https://github.com/flutter/devtools/issues/2955. TEST=Existing service tests Change-Id: I344c2f4cf849d27f08f59e8c61fb4c17c32719d0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/197241 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
parent
8488b37aae
commit
60d149d835