Bug 1253470 - Part 2: Produce console warnings for invalid iterationStart. r=birtles

This commit is contained in:
Daisuke Akatsuka 2016-03-18 10:11:07 +09:00
parent a152d59824
commit 473e0fa56c

View File

@ -67,7 +67,8 @@ struct TimingParams
ErrorResult& aRv)
{
if (aIterationStart < 0) {
aRv.Throw(NS_ERROR_DOM_TYPE_ERR);
aRv.ThrowTypeError<dom::MSG_ENFORCE_RANGE_OUT_OF_RANGE>(
NS_LITERAL_STRING("iterationStart"));
}
}