This repository was archived by the owner on Oct 7, 2021. It is now read-only.
This repository was archived by the owner on Oct 7, 2021. It is now read-only.
cancelScheduledValues and cancelAndHoldAtTime throws RangeError for non-finite #127
Description
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).
Where Is It
For cancelScheduledValues
, see https://webaudio.github.io/web-audio-api/#dom-audioparam-cancelscheduledvalues-canceltime
For cancelAndHoldAtTime
, see https://webaudio.github.io/web-audio-api/#dom-audioparam-cancelandholdattime-canceltime