You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Are asserts intentionally left compiled in? #14461
According to https://github.com/nodejs/node/blob/master/src/util.h#L130ASSERT is enabled unless NDEBUG is defined and I don't see anywhere in the build that sets that. Is this intentional? There is also a CHECK macro which doesn't have the same off switch, so it does seem like asserts are intended to be disabled in release builds.
Activity
bnoordhuis commentedon Jul 25, 2017
Yes, it's intentional; node has always been compiled with asserts enabled.
In fact, we should probably just get rid of ASSERT and replace it with CHECK macros. I'll do that later today if I have time.
src: replace ASSERT with CHECK
src: replace ASSERT with CHECK
src: replace ASSERT with CHECK