Index: third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h b/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h |
index b857e574bf34ba8b7952e87897906e79206c5f8b..1133be0cf88b90658aa1e8e066d824e239064082 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h |
@@ -14,6 +14,10 @@ namespace blink { |
CORE_EXPORT v8::Local<v8::Object> v8IteratorResultValue(v8::Isolate*, bool done, v8::Local<v8::Value>); |
+// Unpacks |item|, stores the value of "done" member to |done| and returns |
+// the value of "value" member. Returns an empty handle when errored. |
+CORE_EXPORT v8::MaybeLocal<v8::Value> v8IterationItemUnpack(ScriptState*, v8::Local<v8::Object> item, bool* done); |
+ |
template<typename T> |
inline ScriptValue v8IteratorResult(ScriptState* scriptState, const T& value) |
{ |