Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 11d7af666f16bec556db17ca607e58a4a9e83345..456f7d46cef91fa37bf03a7cec912b1fdae62e61 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -2102,7 +2102,7 @@ void Internals::updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node* |
} else if (node->hasTagName(HTMLNames::iframeTag)) { |
document = toHTMLIFrameElement(node)->contentDocument(); |
} else { |
- exceptionState.throwDOMException(TypeError, "The node provided is neither a document nor an IFrame."); |
+ exceptionState.throwTypeError("The node provided is neither a document nor an IFrame."); |
return; |
} |
document->updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasksSynchronously); |