| Index: third_party/WebKit/Source/platform/mac/BlockExceptions.mm
|
| diff --git a/third_party/WebKit/Source/platform/mac/BlockExceptions.mm b/third_party/WebKit/Source/platform/mac/BlockExceptions.mm
|
| index ccecee34e23122b2c94365320a1719ac60351c79..e823c3a8892aeb380f6b8d01a048ab6428812f3c 100644
|
| --- a/third_party/WebKit/Source/platform/mac/BlockExceptions.mm
|
| +++ b/third_party/WebKit/Source/platform/mac/BlockExceptions.mm
|
| @@ -29,8 +29,11 @@
|
|
|
| void ReportBlockedObjCException(NSException *exception)
|
| {
|
| -#if ENABLE(ASSERT)
|
| - ASSERT_WITH_MESSAGE(0, "Uncaught exception - %s", [[exception description] UTF8String]);
|
| +#if DCHECK_IS_ON()
|
| + NOTREACHED() << "Uncaught exception - " << [[exception description] UTF8String];
|
| + // This function is marked as NO_RETURN_DUE_TO_ASSERT, but NOTREACHED() and
|
| + // DCHECK(false) are not recognized as NO_RETURN.
|
| + CRASH();
|
| #else
|
| NSLog(@"*** WebKit discarding exception: <%@> %@", [exception name], [exception reason]);
|
| #endif
|
|
|