| Index: Source/modules/encoding/TextDecoder.cpp
|
| diff --git a/Source/modules/encoding/TextDecoder.cpp b/Source/modules/encoding/TextDecoder.cpp
|
| index a6ef96ab4a6bc85dfd0c5332cd89f0d4ef003fc4..9e33277f77993b7bc6d09b726b8f0886fb63c949 100644
|
| --- a/Source/modules/encoding/TextDecoder.cpp
|
| +++ b/Source/modules/encoding/TextDecoder.cpp
|
| @@ -32,6 +32,7 @@
|
|
|
| #include "modules/encoding/TextDecoder.h"
|
|
|
| +#include "bindings/core/v8/DictionaryHelper.h"
|
| #include "bindings/core/v8/ExceptionState.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "wtf/StringExtras.h"
|
| @@ -50,10 +51,10 @@ TextDecoder* TextDecoder::create(const String& label, const Dictionary& options,
|
| }
|
|
|
| bool fatal = false;
|
| - options.get("fatal", fatal);
|
| + DictionaryHelper::get(options, "fatal", fatal);
|
|
|
| bool ignoreBOM = false;
|
| - options.get("ignoreBOM", ignoreBOM);
|
| + DictionaryHelper::get(options, "ignoreBOM", ignoreBOM);
|
|
|
| return new TextDecoder(encoding, fatal, ignoreBOM);
|
| }
|
| @@ -85,7 +86,7 @@ String TextDecoder::encoding() const
|
| String TextDecoder::decode(ArrayBufferView* input, const Dictionary& options, ExceptionState& exceptionState)
|
| {
|
| bool stream = false;
|
| - options.get("stream", stream);
|
| + DictionaryHelper::get(options, "stream", stream);
|
|
|
| const char* start = input ? static_cast<const char*>(input->baseAddress()) : 0;
|
| size_t length = input ? input->byteLength() : 0;
|
|
|