`default_is_true` in bool OptionsParser is a hint for help text. The default value for an option is still required to be set in the option struct. PR-URL: https://github.com/nodejs/node/pull/58030 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
10 lines
277 B
JavaScript
10 lines
277 B
JavaScript
// Flags: --expose-internals --no-async-context-frame
|
|
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const AsyncContextFrame = require('internal/async_context_frame');
|
|
|
|
// Test that AsyncContextFrame can be disabled.
|
|
assert(!AsyncContextFrame.enabled);
|