[remoteobjects] Move return statement outside array loop
This change addresses the unreachable code warning by moving the return statement to the outside of the array parameter handling loop in JSValueToMojom(). Also adds a check for size in the corresponding browser test. Bug: 346399, 794320 Change-Id: I1b4d77f395bc68c568c8969c398c1eab625aaa80 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2116648 Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by:Jeremy Roman <jbroman@chromium.org> Reviewed-by:
Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#753184}
Showing
Please register or sign in to comment