Lines Matching +full:- +full:- +full:strict +full:- +full:warnings
1 'use strict';
6 // --warnings is on by default.
9 // --warnings can be passed alone.
10 assertHasWarning(spawnWithFlags(['--warnings']));
12 // --no-warnings can be passed alone.
13 assertHasNoWarning(spawnWithFlags(['--no-warnings']));
16 assertHasWarning(spawnWithFlags(['--no-warnings', '--warnings']));
18 // Non-boolean flags cannot be negated.
19 assert(spawnWithFlags(['--no-max-http-header-size']).stderr.toString().includes(
20 '--no-max-http-header-size is an invalid negation because it is not ' +
25 assert(spawnWithFlags(['--no-i-dont-exist']).stderr.toString().includes(
26 'bad option: --no-i-dont-exist',
30 return spawnSync(process.execPath, [...flags, '-e', 'new Buffer(0)']);