Describe the issue
The description for cancelTime parameter for both cancelScheduledValues and cancelAndHoldAtTime says that non-finite values should throw a RangeError. However, since the declared type is double and not unrestricted double, a TypeError is thrown instead.
We should update the text to say that a RangeError is thrown for negative values (deleting the part about non-finite values).
Describe the issue The description for
cancelTime
parameter for bothcancelScheduledValues
andcancelAndHoldAtTime
says that non-finite values should throw aRangeError
. However, since the declared type isdouble
and notunrestricted double
, aTypeError
is thrown instead.We should update the text to say that a
RangeError
is thrown for negative values (deleting the part about non-finite values).Where Is It For
cancelScheduledValues
, see https://webaudio.github.io/web-audio-api/#dom-audioparam-cancelscheduledvalues-canceltimeFor
cancelAndHoldAtTime
, see https://webaudio.github.io/web-audio-api/#dom-audioparam-cancelandholdattime-canceltime