Index: Source/modules/encoding/TextDecoder.cpp |
diff --git a/Source/modules/encoding/TextDecoder.cpp b/Source/modules/encoding/TextDecoder.cpp |
index a33215187ca4b4e228077454fd7f828873b99711..ea24f67cc378091f29217a14da06a65e4a99cdc3 100644 |
--- a/Source/modules/encoding/TextDecoder.cpp |
+++ b/Source/modules/encoding/TextDecoder.cpp |
@@ -50,10 +50,10 @@ TextDecoder* TextDecoder::create(const String& label, const Dictionary& options, |
} |
bool fatal = false; |
- DictionaryHelper::get(options, "fatal", fatal); |
+ options.get("fatal", fatal); |
bool ignoreBOM = false; |
- DictionaryHelper::get(options, "ignoreBOM", ignoreBOM); |
+ options.get("ignoreBOM", ignoreBOM); |
return new TextDecoder(encoding, fatal, ignoreBOM); |
} |
@@ -85,7 +85,7 @@ String TextDecoder::encoding() const |
String TextDecoder::decode(ArrayBufferView* input, const Dictionary& options, ExceptionState& exceptionState) |
{ |
bool stream = false; |
- DictionaryHelper::get(options, "stream", stream); |
+ options.get("stream", stream); |
const char* start = input ? static_cast<const char*>(input->baseAddress()) : 0; |
size_t length = input ? input->byteLength() : 0; |