DescriptionReland: 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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191442
Patch Set 1 #Patch Set 2 : rebased #Patch Set 3 : fix test expectation #Patch Set 4 : keep C++-side checks #Patch Set 5 : #Patch Set 6 : add FIXME comments #
Messages
Total messages: 17 (3 generated)
|