Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp |
index cbfff366342a018a0e4fd0ee8d8f33d5b88ed74e..35322d3ef63b79e4ac2a61ae8e8e7abb60cd89fe 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp |
@@ -127,8 +127,10 @@ private: |
return; |
v8::Local<v8::Array> values = v8::Array::New(value.isolate(), m_values.size()); |
- for (size_t i = 0; i < m_values.size(); ++i) |
- values->Set(i, m_values[i].v8Value()); |
+ for (size_t i = 0; i < m_values.size(); ++i) { |
+ if (!v8CallBoolean(values->CreateDataProperty(value.context(), i, m_values[i].v8Value()))) |
+ return; |
+ } |
markPromiseSettled(); |
m_resolver.resolve(values); |