Reland: Add [TypeChecking=Interface] to Range interface

All functions already threw exceptions for invalid argument values, but
DOMException exceptions instead of TypeError exceptions.

Throwing TypeError exceptions matches Firefox's behavior.

Note that the null checks are kept in the implementation since many of
the functions are called from C++ code that in some cases depend on the
existing error handling of invalid input.

BUG=462561

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

git-svn-id: svn://svn.chromium.org/blink/trunk@191442 bbb929c8-8fbe-4397-9dbb-9b2b20218538
7 files changed
tree: 3e930045148061fa2671f46fabda09f73186e832
  1. third_party/