mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
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:
parent
1ed2ba9764
commit
d2908d39ab
@ -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)
|
||||
|
||||
|
||||
# =======================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user