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:
maxLanglade 2018-07-18 21:32:14 +02:00
parent a9f66711be
commit 7292f5dbd0

View File

@ -210,7 +210,7 @@ void
ConstantSourceNode::Start(double aWhen, ErrorResult& aRv)
{
if (!WebAudioUtils::IsTimeValid(aWhen)) {
aRv.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
aRv.Throw(NS_ERROR_RANGE_ERR);
return;
}
@ -234,7 +234,7 @@ void
ConstantSourceNode::Stop(double aWhen, ErrorResult& aRv)
{
if (!WebAudioUtils::IsTimeValid(aWhen)) {
aRv.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
aRv.Throw(NS_ERROR_RANGE_ERR);
return;
}