Set correct Function.length on overloaded and variadic methods

According to WebIDL, the Function.length property should be the length of
shortest argument list in the effective overload set for argument count 0.
This means for instance that variadic arguments don't contribute to the
length.

BUG=377718

Review URL: https://codereview.chromium.org/296403007

git-svn-id: svn://svn.chromium.org/blink/trunk@175559 bbb929c8-8fbe-4397-9dbb-9b2b20218538
6 files changed
tree: a55930a8babb5217383baccc5a80d5206531e803
  1. third_party/