Index: Source/core/dom/MutationObserver.cpp |
diff --git a/Source/core/dom/MutationObserver.cpp b/Source/core/dom/MutationObserver.cpp |
index 21bdd693b54f76cd875ed58e981969bdc9814b58..ba2d25a36b938692157e5cf01a8f9a5e25d45ae5 100644 |
--- a/Source/core/dom/MutationObserver.cpp |
+++ b/Source/core/dom/MutationObserver.cpp |
@@ -119,21 +119,21 @@ void MutationObserver::observe(Node* node, const Dictionary& optionsDictionary, |
if (!(options & Attributes)) { |
if (options & AttributeOldValue) { |
- exceptionState.throwDOMException(TypeError, "The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present."); |
+ exceptionState.throwTypeError("The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present."); |
return; |
} |
if (options & AttributeFilter) { |
- exceptionState.throwDOMException(TypeError, "The options object may only set 'attributeFilter' when 'attributes' is true or not present."); |
+ exceptionState.throwTypeError("The options object may only set 'attributeFilter' when 'attributes' is true or not present."); |
return; |
} |
} |
if (!((options & CharacterData) || !(options & CharacterDataOldValue))) { |
- exceptionState.throwDOMException(TypeError, "The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present."); |
+ exceptionState.throwTypeError("The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present."); |
return; |
} |
if (!(options & (Attributes | CharacterData | ChildList))) { |
- exceptionState.throwDOMException(TypeError, "The options object must set at least one of 'attributes', 'characterData', or 'childList' to true."); |
+ exceptionState.throwTypeError("The options object must set at least one of 'attributes', 'characterData', or 'childList' to true."); |
return; |
} |