assertionsAlwaysThrow property

bool assertionsAlwaysThrow
getter/setter pair

AssertionErrors are almost never wanted in production, so by default they will dirextly be rethrown, so that they are found early in development In case you want them to be handled like any other error, meaning an ErrorFilter will decide what should happen, set this to false.

Implementation

static bool assertionsAlwaysThrow = true;