WebAudio / web-audio-api-v2

The Web Audio API v2.0, developed by the W3C Audio WG
Other
120 stars 11 forks source link

cancelScheduledValues and cancelAndHoldAtTime throws RangeError for non-finite #127

Closed rtoy closed 3 years ago

rtoy commented 3 years ago

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