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..739ad0ad19ef1165669005adcf7c81bad9afd9a4 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h |
@@ -12,8 +12,15 @@ |
namespace blink { |
+// "Iterator result" in this file is an object returned from iterator.next() |
+// having two members "done" and "value". |
+ |
CORE_EXPORT v8::Local<v8::Object> v8IteratorResultValue(v8::Isolate*, bool done, v8::Local<v8::Value>); |
+// Unpacks |result|, 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> v8UnpackIteratorResult(ScriptState*, v8::Local<v8::Object> result, bool* done); |
+ |
template<typename T> |
inline ScriptValue v8IteratorResult(ScriptState* scriptState, const T& value) |
{ |