ASSERT_NO_EXCEPTION should assert in release builds |
||
Issue descriptionASSERT_NO_EXCEPTION is used internally when we know that the code should never throw, for example when calling appendChild() from inside the C++ code in a place where author code cannot interfere. Today ASSERT_NO_EXCEPTION only asserts in debug, but this means we're probably hiding bugs in the wild.
,
Apr 11 2017
I reasoned this was different because exceptions are action at a distance. A DCHECK you know what you're testing, but calling appendChild with ASSERT_NO_EXCEPTION is basically "make sure nothing bad happened, but I don't really know what could happen." But yeah it does seem to be about the same as other dchecks, and we already ship dump-on-dcheck or tried CHECKs in canary before.
,
Apr 11 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by jbroman@chromium.org
, Apr 11 2017