Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h |
index aea2963249e4500975ccb241bf8d42c2bdc208f4..dfa5b1bd075df0460479e2ea88e804e02d188b63 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h |
@@ -52,7 +52,7 @@ class CORE_EXPORT ScriptPromiseResolver |
// - this resolver is destructed before it is resolved, rejected, |
// detached, the V8 isolate is terminated or the associated |
// ExecutionContext is stopped. |
- ASSERT(state_ == kDetached || !is_promise_called_ || |
+ DCHECK(state_ == kDetached || !is_promise_called_ || |
!GetScriptState()->ContextIsValid() || !GetExecutionContext() || |
GetExecutionContext()->IsContextDestroyed()); |
} |
@@ -122,7 +122,7 @@ class CORE_EXPORT ScriptPromiseResolver |
if (state_ != kPending || !GetScriptState()->ContextIsValid() || |
!GetExecutionContext() || GetExecutionContext()->IsContextDestroyed()) |
return; |
- ASSERT(new_state == kResolving || new_state == kRejecting); |
+ DCHECK(new_state == kResolving || new_state == kRejecting); |
state_ = new_state; |
ScriptState::Scope scope(script_state_.Get()); |