Index: Source/modules/serviceworkers/Headers.cpp |
diff --git a/Source/modules/serviceworkers/Headers.cpp b/Source/modules/serviceworkers/Headers.cpp |
index 978965af9c7eda13f9163ef7ab31fb84723a845c..133e4933e7224006f6ca99b646a5356e546180ec 100644 |
--- a/Source/modules/serviceworkers/Headers.cpp |
+++ b/Source/modules/serviceworkers/Headers.cpp |
@@ -253,7 +253,7 @@ void Headers::fillWith(const Dictionary& object, ExceptionState& exceptionState) |
// http://fetch.spec.whatwg.org/#headers-class |
// FIXME: Support sequence<sequence<ByteString>>. |
Vector<String> keyValuePair; |
- if (object.get(keys[0], keyValuePair)) { |
+ if (DictionaryHelper::get(object, keys[0], keyValuePair)) { |
// "2. Otherwise, if |object| is a sequence, then for each |header| in |
// |object|, run these substeps: |
// 1. If |header| does not contain exactly two items, throw a |
@@ -263,7 +263,7 @@ void Headers::fillWith(const Dictionary& object, ExceptionState& exceptionState) |
for (size_t i = 0; i < keys.size(); ++i) { |
// We've already got the keyValuePair for key[0]. |
if (i > 0) { |
- if (!object.get(keys[i], keyValuePair)) { |
+ if (!DictionaryHelper::get(object, keys[i], keyValuePair)) { |
exceptionState.throwTypeError("Invalid value"); |
return; |
} |
@@ -288,7 +288,7 @@ void Headers::fillWith(const Dictionary& object, ExceptionState& exceptionState) |
// FIXME: Support OpenEndedDictionary<ByteString>. |
for (size_t i = 0; i < keys.size(); ++i) { |
String value; |
- if (!object.get(keys[i], value)) { |
+ if (!DictionaryHelper::get(object, keys[i], value)) { |
exceptionState.throwTypeError("Invalid value"); |
return; |
} |