mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
Bug 1413284 - A RangeError exception is thrown if start/stop is called with a out of range param r=padenot
MozReview-Commit-ID: G65bFgMu10D --HG-- extra : rebase_source : e2a4f44072d568c5960994f330bb9550bc05830e
This commit is contained in:
parent
a9f66711be
commit
7292f5dbd0
@ -210,7 +210,7 @@ void
|
|||||||
ConstantSourceNode::Start(double aWhen, ErrorResult& aRv)
|
ConstantSourceNode::Start(double aWhen, ErrorResult& aRv)
|
||||||
{
|
{
|
||||||
if (!WebAudioUtils::IsTimeValid(aWhen)) {
|
if (!WebAudioUtils::IsTimeValid(aWhen)) {
|
||||||
aRv.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
|
aRv.Throw(NS_ERROR_RANGE_ERR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ void
|
|||||||
ConstantSourceNode::Stop(double aWhen, ErrorResult& aRv)
|
ConstantSourceNode::Stop(double aWhen, ErrorResult& aRv)
|
||||||
{
|
{
|
||||||
if (!WebAudioUtils::IsTimeValid(aWhen)) {
|
if (!WebAudioUtils::IsTimeValid(aWhen)) {
|
||||||
aRv.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
|
aRv.Throw(NS_ERROR_RANGE_ERR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user