Skip to content
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

Closed
WebAudio/web-audio-api
#2352
@rtoy

Description

@rtoy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorialBehaviour is clear -- grammar, phrasing or typos, alongside some clarifications

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions