| Index: Source/modules/websockets/WebSocket.cpp
|
| diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp
|
| index ea8e45aabc101d7bf558ea3e371c4ca832fd633d..e340cedefcd978be83678d344bb6e01cea04af0a 100644
|
| --- a/Source/modules/websockets/WebSocket.cpp
|
| +++ b/Source/modules/websockets/WebSocket.cpp
|
| @@ -464,7 +464,7 @@ void WebSocket::closeInternal(int code, const String& reason, ExceptionState& ex
|
| exceptionState.throwDOMException(InvalidAccessError, "The code must be either 1000, or between 3000 and 4999. " + String::number(code) + " is neither.");
|
| return;
|
| }
|
| - CString utf8 = reason.utf8(String::StrictConversionReplacingUnpairedSurrogatesWithFFFD);
|
| + CString utf8 = reason.utf8(StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD);
|
| if (utf8.length() > maxReasonSizeInBytes) {
|
| exceptionState.throwDOMException(SyntaxError, "The message must not be greater than " + String::number(maxReasonSizeInBytes) + " bytes.");
|
| return;
|
|
|