Have document.evaluate() report TypeError over incorrect resolvers.

Switch from reporting TypeMismatchError to TypeError to align with
other implementations (and WebIDL) when faced with resolver arguments
that do not have a function type.

To help format the error message about an incorrectly typed argument,
introduced ExceptionMessages::incorrectArgumentType().

R=
BUG=270033

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

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