DevTools/Hacking: Difference between revisions

→‎Enabling DevTools Assertions: expand assertions a bit
(Add notes on assertions)
(→‎Enabling DevTools Assertions: expand assertions a bit)
Line 100: Line 100:
   // ...
   // ...
   assert(1 + 1 === 2, "I really hope this is true...");
   assert(1 + 1 === 2, "I really hope this is true...");
When assertions are enabled, assertion failures are fatal, log console warnings, and throw errors.
It also enables the "debug" builds of certain third party libraries, such as React.


== JavaScript Modules ==
== JavaScript Modules ==
Confirmed users
125

edits