diff --git a/src/builtins/builtins-regexp-gen.cc b/src/builtins/builtins-regexp-gen.cc index 69c6cd747e..c4505cb57a 100644 --- a/src/builtins/builtins-regexp-gen.cc +++ b/src/builtins/builtins-regexp-gen.cc @@ -732,7 +732,8 @@ TNode RegExpBuiltinsAssembler::RegExpExecInternal( TNode pending_exception_address = ExternalConstant(ExternalReference::Create( IsolateAddressId::kPendingExceptionAddress, isolate())); - CSA_DCHECK(this, IsTheHole(Load(pending_exception_address))); + TNode pending_exception = LoadFullTagged(pending_exception_address); + CSA_DCHECK(this, IsTheHole(pending_exception)); #endif // DEBUG CallRuntime(Runtime::kThrowStackOverflow, context); Unreachable();