| Index: Source/bindings/core/v8/V8Binding.cpp
|
| diff --git a/Source/bindings/core/v8/V8Binding.cpp b/Source/bindings/core/v8/V8Binding.cpp
|
| index bb21a8341ed37ba93beab866d7377d7d2478b477..e5ec7fdcdf3d213870455a87f3ee51f592e899f6 100644
|
| --- a/Source/bindings/core/v8/V8Binding.cpp
|
| +++ b/Source/bindings/core/v8/V8Binding.cpp
|
| @@ -909,4 +909,20 @@ PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
|
| return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lineNumber);
|
| }
|
|
|
| +v8::Local<v8::Value> v8DoneIteratorResult(v8::Isolate* isolate)
|
| +{
|
| + v8::Local<v8::Object> result = v8::Object::New(isolate);
|
| + result->Set(v8String(isolate, "value"), v8::Undefined(isolate));
|
| + result->Set(v8String(isolate, "done"), v8Boolean(true, isolate));
|
| + return result;
|
| +}
|
| +
|
| +v8::Local<v8::Value> v8IteratorResult(v8::Isolate* isolate, v8::Handle<v8::Value> value)
|
| +{
|
| + v8::Local<v8::Object> result = v8::Object::New(isolate);
|
| + result->Set(v8String(isolate, "value"), value);
|
| + result->Set(v8String(isolate, "done"), v8Boolean(false, isolate));
|
| + return result;
|
| +}
|
| +
|
| } // namespace blink
|
|
|