Skip to content

Commit 8cbb965

Browse files
authored
[Docs] Mention that ASSERTIONS are disabled in -O1+ (#23823)
1 parent eab1a29 commit 8cbb965

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Whether we should add runtime assertions. This affects both JS and how
2323
system libraries are built.
2424
ASSERTIONS == 2 gives even more runtime checks, that may be very slow. That
2525
includes internal dlmalloc assertions, for example.
26+
ASSERTIONS defaults to 0 in optimized builds (-O1 and above).
2627

2728
Default value: 1
2829

src/settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
// system libraries are built.
4848
// ASSERTIONS == 2 gives even more runtime checks, that may be very slow. That
4949
// includes internal dlmalloc assertions, for example.
50+
// ASSERTIONS defaults to 0 in optimized builds (-O1 and above).
5051
// [link]
5152
var ASSERTIONS = 1;
5253

0 commit comments

Comments
 (0)