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:
@@ -692,6 +692,7 @@ DOMException::Constructor(GlobalObject& /* unused */,
|
|||||||
if (name.EqualsASCII(sDOMErrorMsgMap[idx].mName)) {
|
if (name.EqualsASCII(sDOMErrorMsgMap[idx].mName)) {
|
||||||
exceptionResult = sDOMErrorMsgMap[idx].mNSResult;
|
exceptionResult = sDOMErrorMsgMap[idx].mNSResult;
|
||||||
exceptionCode = sDOMErrorMsgMap[idx].mCode;
|
exceptionCode = sDOMErrorMsgMap[idx].mCode;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user