| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "bindings/v8/ScriptPromiseResolverWithContext.h" | 6 #include "bindings/v8/ScriptPromiseResolverWithContext.h" |
| 7 | 7 |
| 8 namespace WebCore { | 8 namespace WebCore { |
| 9 | 9 |
| 10 ScriptPromiseResolverWithContext::ScriptPromiseResolverWithContext(NewScriptStat
e* scriptState) | 10 ScriptPromiseResolverWithContext::ScriptPromiseResolverWithContext(NewScriptStat
e* scriptState) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 m_resolver->reject(m_value.newLocal(m_scriptState->isolate())); | 44 m_resolver->reject(m_value.newLocal(m_scriptState->isolate())); |
| 45 } | 45 } |
| 46 m_state = ResolvedOrRejected; | 46 m_state = ResolvedOrRejected; |
| 47 clear(); | 47 clear(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void ScriptPromiseResolverWithContext::clear() | 50 void ScriptPromiseResolverWithContext::clear() |
| 51 { | 51 { |
| 52 m_resolver.clear(); | 52 m_resolver.clear(); |
| 53 m_value.clear(); | 53 m_value.clear(); |
| 54 m_scriptState.clear(); | |
| 55 } | 54 } |
| 56 | 55 |
| 57 } // namespace WebCore | 56 } // namespace WebCore |
| OLD | NEW |