// These methods must throw "IndexSizeError" DOMExceptions if called with an index argument greater than or equal to the number of ranges represented by the object.
if(index>=m_ranges.size())
returnWebIDL::IndexSizeError::create(realm(),"Index argument is greater than or equal to the number of ranges represented by this TimeRanges object"_string);
// The start(index) method must return the position of the start of the indexth range represented by the object,
// in seconds measured from the start of the timeline that the object covers.
// These methods must throw "IndexSizeError" DOMExceptions if called with an index argument greater than or equal to the number of ranges represented by the object.
if(index>=m_ranges.size())
returnWebIDL::IndexSizeError::create(realm(),"Index argument is greater than or equal to the number of ranges represented by this TimeRanges object"_string);
// The end(index) method must return the position of the end of the indexth range represented by the object,
// in seconds measured from the start of the timeline that the object covers.