| Index: Source/modules/encoding/TextEncoder.cpp
|
| diff --git a/Source/modules/encoding/TextEncoder.cpp b/Source/modules/encoding/TextEncoder.cpp
|
| index 702c5e33226358d78fd9cac3dd5a247295f58d01..98b935497dc8cdfac456095abfc0044f015937e6 100644
|
| --- a/Source/modules/encoding/TextEncoder.cpp
|
| +++ b/Source/modules/encoding/TextEncoder.cpp
|
| @@ -39,19 +39,19 @@
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtr<TextEncoder> TextEncoder::create(const String& utfLabel, ExceptionState& es)
|
| +PassRefPtr<TextEncoder> TextEncoder::create(const String& utfLabel, ExceptionState& exceptionState)
|
| {
|
| const String& encodingLabel = utfLabel.isNull() ? String("utf-8") : utfLabel;
|
|
|
| WTF::TextEncoding encoding(encodingLabel);
|
| if (!encoding.isValid()) {
|
| - es.throwUninformativeAndGenericTypeError();
|
| + exceptionState.throwUninformativeAndGenericTypeError();
|
| return 0;
|
| }
|
|
|
| String name(encoding.name());
|
| if (name != "UTF-8" && name != "UTF-16LE" && name != "UTF-16BE") {
|
| - es.throwUninformativeAndGenericTypeError();
|
| + exceptionState.throwUninformativeAndGenericTypeError();
|
| return 0;
|
| }
|
|
|
|
|