[Extensions Bindings] Tweak signature parsing
Signature parsing failed in cases where an optional parameter of a certain type was followed by a required parameter of the same type. The parsing was greedy, and would always use a parameter if it matched. This meant that passing a value like `1` to a signature that matched (optional int, int) would fail, because the `1` would be applied to the first optional int, and the second int would be missing. Tweak signature parsing to find the signature that matches the supplied arguments (if any possible signature matches) and resolve the arguments before performing parsing. Update unittests for the same. Bug: 818555 Change-Id: I57c9909ff73505467fb9d333690113bea8eea433 Reviewed-on: https://chromium-review.googlesource.com/993532Reviewed-by:Istiaque Ahmed <lazyboy@chromium.org> Reviewed-by:
Jeremy Roman <jbroman@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#549527}
Showing
Please register or sign in to comment