Index: Source/core/html/canvas/CanvasGradient.cpp |
diff --git a/Source/core/html/canvas/CanvasGradient.cpp b/Source/core/html/canvas/CanvasGradient.cpp |
index dcb406d8b32560a15cd856998ed4fff6e7c7a8f5..e1c902861e06af248d1d912b00264539ff2e97cd 100644 |
--- a/Source/core/html/canvas/CanvasGradient.cpp |
+++ b/Source/core/html/canvas/CanvasGradient.cpp |
@@ -54,7 +54,7 @@ void CanvasGradient::addColorStop(float value, const String& color, ExceptionCod |
RGBA32 rgba = 0; |
if (!parseColorOrCurrentColor(rgba, color, 0 /*canvas*/)) { |
- ec = SYNTAX_ERR; |
+ ec = SyntaxError; |
return; |
} |