Bug 1581172. Remove NS_ERROR_DOM_TYPE_ERR. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D63500

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Boris Zbarsky 2020-02-20 16:57:57 +00:00
Родитель 1ed2ba9764
Коммит d2908d39ab
3 изменённых файлов: 1 добавлений и 3 удалений

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

@ -49,7 +49,6 @@ DOM4_MSG_DEF(InvalidStateError, "The matrix could not be computed", NS_ERROR_DOM
/* XPath errors from http://www.w3.org/TR/DOM-Level-3-XPath/ */
DOM4_MSG_DEF(SyntaxError, "The expression is not a legal expression.", NS_ERROR_DOM_INVALID_EXPRESSION_ERR)
DOM4_MSG_DEF(TypeError, "The expression cannot be converted to return the specified type.", NS_ERROR_DOM_TYPE_ERR)
/* IndexedDB errors http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#exceptions */

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

@ -73,7 +73,7 @@ void MIDIOutput::Send(const Sequence<uint8_t>& aData,
// Our translation of the spec is that invalid messages in a multi-message
// sequence will be thrown out, but that valid messages will still be used.
if (msgArray.IsEmpty()) {
aRv.Throw(NS_ERROR_DOM_TYPE_ERR);
aRv.ThrowTypeError(u"Empty message array");
return;
}

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

@ -880,7 +880,6 @@ with modules["SECURITY"]:
with modules["DOM_XPATH"]:
# DOM error codes from http://www.w3.org/TR/DOM-Level-3-XPath/
errors["NS_ERROR_DOM_INVALID_EXPRESSION_ERR"] = FAILURE(51)
errors["NS_ERROR_DOM_TYPE_ERR"] = FAILURE(52)
# =======================================================================