Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(995)

Unified Diff: Source/core/html/canvas/Path2D.h

Issue 234903003: Should throw TypeError instead of TypeMismatchError (canvas) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/Path2D.h
diff --git a/Source/core/html/canvas/Path2D.h b/Source/core/html/canvas/Path2D.h
index bc886639a4a67b0299a31434d9f4743c45ef47ad..f988ded4c56e65b55dee73f2d6e5555fcdfff028 100644
--- a/Source/core/html/canvas/Path2D.h
+++ b/Source/core/html/canvas/Path2D.h
@@ -53,7 +53,7 @@ public:
void addPath(Path2D* path, SVGMatrixTearOff* transform, ExceptionState& exceptionState)
{
if (!path) {
- exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::argumentNullOrIncorrectType(1, "Path"));
+ exceptionState.throwTypeError(ExceptionMessages::argumentNullOrIncorrectType(1, "Path"));
return;
}
Path src = path->path();
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698