From 23a3911cb107b0170c0ba803df574007c14ea72c Mon Sep 17 00:00:00 2001 From: Andreas Madsen Date: Thu, 19 Oct 2017 14:15:08 +0200 Subject: [PATCH] async_hooks: enable runtime checks by default Ref: https://github.com/nodejs/node/pull/15454 PR-URL: https://github.com/nodejs/node/pull/16318 Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann --- doc/api/cli.md | 6 ++--- doc/node.1 | 6 ++--- src/env-inl.h | 13 +++++++--- src/env.h | 2 +- src/node.cc | 16 ++++++------ test/async-hooks/test-force-checks-flag.js | 25 ------------------- .../test-no-assert-when-disabled.js | 10 +------- test/common/index.js | 11 -------- 8 files changed, 26 insertions(+), 63 deletions(-) delete mode 100644 test/async-hooks/test-force-checks-flag.js diff --git a/doc/api/cli.md b/doc/api/cli.md index b6d778f5ac4..c0fd8f57615 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -208,13 +208,13 @@ added: v2.1.0 Prints a stack trace whenever synchronous I/O is detected after the first turn of the event loop. -### `--force-async-hooks-checks` +### `--no-force-async-hooks-checks` -Enables runtime checks for `async_hooks`. These can also be enabled dynamically -by enabling one of the `async_hooks` hooks. +Disables runtime checks for `async_hooks`. These will still be enabled +dynamically when `async_hooks` is enabled. ### `--trace-events-enabled`