| Index: third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
|
| index 87fcf6ecdf4bc45b4b1bdd9fd6306815b193ca12..e5bb61552205bb50e241e5f922e07439c9db3d01 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
|
| @@ -204,7 +204,7 @@ void RejectedPromises::handlerAdded(v8::PromiseRejectMessage data) {
|
| // by processQueue().
|
| for (auto it = m_queue.begin(); it != m_queue.end(); ++it) {
|
| if (!(*it)->isCollected() && (*it)->hasPromise(data.GetPromise())) {
|
| - m_queue.remove(it);
|
| + m_queue.erase(it);
|
| return;
|
| }
|
| }
|
|
|