[Webkit-unassigned] [Bug 171776] New: Introduce ExceptionScope::assertNoException() and releaseAssertNoException().
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat May 6 15:14:34 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=171776
Bug ID: 171776
Summary: Introduce ExceptionScope::assertNoException() and
releaseAssertNoException().
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mark.lam at apple.com
Instead of ASSERT(!scope.exception()), we can now do scope.assertNoException(). Ditto for RELEASE_ASSERT and scope.releaseAssertNoException().
The advantage of using ExceptionScope::assertNoException() and releaseAssertNoException() is that if the assertion fails, these utility functions will print the stack trace for where the unexpected exception is detected as well as where the unexpected exception was thrown from. This makes it much easier to debug the source of unhandled exceptions.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170506/79c5755c/attachment.html>
More information about the webkit-unassigned
mailing list