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
parent b3ab336712
commit f6a0716f4e

View File

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