Index: Source/core/page/Location.cpp |
diff --git a/Source/core/page/Location.cpp b/Source/core/page/Location.cpp |
index b901efa823295fcc7b5a942e7d693e39f081dc6e..3a78903fa7ec2a0b715e76872ff3d395f9fef4d3 100644 |
--- a/Source/core/page/Location.cpp |
+++ b/Source/core/page/Location.cpp |
@@ -157,7 +157,7 @@ void Location::setProtocol(DOMWindow* activeWindow, DOMWindow* firstWindow, cons |
return; |
KURL url = m_frame->document()->url(); |
if (!url.setProtocol(protocol)) { |
- ec = SYNTAX_ERR; |
+ ec = SyntaxError; |
return; |
} |
setLocation(url.string(), activeWindow, firstWindow); |