Bug 1131894. Break out of the loop in the DOMException constructor once we find a code/result for the given message name. r=peterv

This commit is contained in:
Boris Zbarsky 2015-02-13 14:34:53 -05:00
Родитель 3a8ff9079e
Коммит 4f1c7f6205
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -692,6 +692,7 @@ DOMException::Constructor(GlobalObject& /* unused */,
if (name.EqualsASCII(sDOMErrorMsgMap[idx].mName)) {
exceptionResult = sDOMErrorMsgMap[idx].mNSResult;
exceptionCode = sDOMErrorMsgMap[idx].mCode;
break;
}
}
}