From ecb7abf8fa58306bf1d58b44df352ee08df643ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Sun, 29 Mar 2020 00:01:29 -0500 Subject: [PATCH] test: replace flag expose_internals to expose-internals --- test/parallel/test-child-process-bad-stdio.js | 2 +- test/parallel/test-child-process-exec-kill-throws.js | 2 +- test/parallel/test-child-process-http-socket-leak.js | 2 +- test/parallel/test-child-process-spawnsync-kill-signal.js | 2 +- test/parallel/test-child-process-spawnsync-shell.js | 2 +- test/parallel/test-child-process-validate-stdio.js | 2 +- test/parallel/test-child-process-windows-hide.js | 2 +- test/parallel/test-constants.js | 2 +- test/parallel/test-fs-open-flags.js | 2 +- test/parallel/test-http2-compat-socket.js | 2 +- test/parallel/test-http2-socket-proxy.js | 2 +- test/parallel/test-icu-stringwidth.js | 2 +- test/parallel/test-internal-util-decorate-error-stack.js | 2 +- test/parallel/test-os-checked-function.js | 2 +- test/parallel/test-readline-interface.js | 2 +- test/parallel/test-readline-tab-complete.js | 2 +- test/parallel/test-repl-history-perm.js | 2 +- test/parallel/test-repl.js | 2 +- test/parallel/test-safe-get-env.js | 2 +- test/parallel/test-stream-buffer-list.js | 2 +- test/parallel/test-stream2-readable-from-list.js | 2 +- test/parallel/test-tls-parse-cert-string.js | 2 +- test/parallel/test-tls-wrap-timeout.js | 2 +- test/parallel/test-util-internal.js | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/test/parallel/test-child-process-bad-stdio.js b/test/parallel/test-child-process-bad-stdio.js index 45294d7d82d4..1f382e296604 100644 --- a/test/parallel/test-child-process-bad-stdio.js +++ b/test/parallel/test-child-process-bad-stdio.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); const assert = require('assert'); const cp = require('child_process'); diff --git a/test/parallel/test-child-process-exec-kill-throws.js b/test/parallel/test-child-process-exec-kill-throws.js index d6a0d4da19ea..fbc9677f5310 100644 --- a/test/parallel/test-child-process-exec-kill-throws.js +++ b/test/parallel/test-child-process-exec-kill-throws.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); const assert = require('assert'); const cp = require('child_process'); diff --git a/test/parallel/test-child-process-http-socket-leak.js b/test/parallel/test-child-process-http-socket-leak.js index 9b284f285c45..cae4b051bc2b 100644 --- a/test/parallel/test-child-process-http-socket-leak.js +++ b/test/parallel/test-child-process-http-socket-leak.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; diff --git a/test/parallel/test-child-process-spawnsync-kill-signal.js b/test/parallel/test-child-process-spawnsync-kill-signal.js index 0c8f4a6d465b..6d14f24724bb 100644 --- a/test/parallel/test-child-process-spawnsync-kill-signal.js +++ b/test/parallel/test-child-process-spawnsync-kill-signal.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-child-process-spawnsync-shell.js b/test/parallel/test-child-process-spawnsync-shell.js index 0a20a490dd6c..0dd50cedd123 100644 --- a/test/parallel/test-child-process-spawnsync-shell.js +++ b/test/parallel/test-child-process-spawnsync-shell.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-child-process-validate-stdio.js b/test/parallel/test-child-process-validate-stdio.js index 5b0259f19bbd..ff214ee2d782 100644 --- a/test/parallel/test-child-process-validate-stdio.js +++ b/test/parallel/test-child-process-validate-stdio.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-child-process-windows-hide.js b/test/parallel/test-child-process-windows-hide.js index 42bca6471ccd..1d9593c0a992 100644 --- a/test/parallel/test-child-process-windows-hide.js +++ b/test/parallel/test-child-process-windows-hide.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-constants.js b/test/parallel/test-constants.js index 62c62b101a10..08d1f1dbcdd0 100644 --- a/test/parallel/test-constants.js +++ b/test/parallel/test-constants.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; require('../common'); diff --git a/test/parallel/test-fs-open-flags.js b/test/parallel/test-fs-open-flags.js index 80e54d169d52..4c4b8039dca6 100644 --- a/test/parallel/test-fs-open-flags.js +++ b/test/parallel/test-fs-open-flags.js @@ -19,7 +19,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-socket.js b/test/parallel/test-http2-compat-socket.js index 0db2876738c7..95bc42180ef8 100644 --- a/test/parallel/test-http2-compat-socket.js +++ b/test/parallel/test-http2-compat-socket.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; diff --git a/test/parallel/test-http2-socket-proxy.js b/test/parallel/test-http2-socket-proxy.js index 17704e2fd9e3..3294cf7ccb90 100644 --- a/test/parallel/test-http2-socket-proxy.js +++ b/test/parallel/test-http2-socket-proxy.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; diff --git a/test/parallel/test-icu-stringwidth.js b/test/parallel/test-icu-stringwidth.js index e2f229411585..66d75c4cbe2c 100644 --- a/test/parallel/test-icu-stringwidth.js +++ b/test/parallel/test-icu-stringwidth.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-internal-util-decorate-error-stack.js b/test/parallel/test-internal-util-decorate-error-stack.js index 40fbf1d48caf..b12d50bee79a 100644 --- a/test/parallel/test-internal-util-decorate-error-stack.js +++ b/test/parallel/test-internal-util-decorate-error-stack.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; require('../common'); const fixtures = require('../common/fixtures'); diff --git a/test/parallel/test-os-checked-function.js b/test/parallel/test-os-checked-function.js index e0758437fe87..819cdf179415 100644 --- a/test/parallel/test-os-checked-function.js +++ b/test/parallel/test-os-checked-function.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals require('../common'); const { internalBinding } = require('internal/test/binding'); diff --git a/test/parallel/test-readline-interface.js b/test/parallel/test-readline-interface.js index 0f96f8368b5d..59a65e8ca202 100644 --- a/test/parallel/test-readline-interface.js +++ b/test/parallel/test-readline-interface.js @@ -19,7 +19,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-readline-tab-complete.js b/test/parallel/test-readline-tab-complete.js index 5afa60e4dae9..d7a4bb7a9a06 100644 --- a/test/parallel/test-readline-tab-complete.js +++ b/test/parallel/test-readline-tab-complete.js @@ -1,6 +1,6 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); const readline = require('readline'); diff --git a/test/parallel/test-repl-history-perm.js b/test/parallel/test-repl-history-perm.js index 3db2a009eb05..7297689422eb 100644 --- a/test/parallel/test-repl-history-perm.js +++ b/test/parallel/test-repl-history-perm.js @@ -2,7 +2,7 @@ // Verifies that the REPL history file is created with mode 0600 -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index a7b0b453e906..cb66c22457fd 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -560,7 +560,7 @@ const errorTests = [ expect: '... ... ... undefined' }, // REPL should get a normal require() function, not one that allows - // access to internal modules without the --expose_internals flag. + // access to internal modules without the --expose-internals flag. { send: 'require("internal/repl")', expect: [ diff --git a/test/parallel/test-safe-get-env.js b/test/parallel/test-safe-get-env.js index 0bee9971dbb3..f57dcb566d67 100644 --- a/test/parallel/test-safe-get-env.js +++ b/test/parallel/test-safe-get-env.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-stream-buffer-list.js b/test/parallel/test-stream-buffer-list.js index c78efeea24bf..5b495a41e085 100644 --- a/test/parallel/test-stream-buffer-list.js +++ b/test/parallel/test-stream-buffer-list.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-stream2-readable-from-list.js b/test/parallel/test-stream2-readable-from-list.js index 0ab7c059d66a..6564a01691f0 100644 --- a/test/parallel/test-stream2-readable-from-list.js +++ b/test/parallel/test-stream2-readable-from-list.js @@ -19,7 +19,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-tls-parse-cert-string.js b/test/parallel/test-tls-parse-cert-string.js index a3062c227e6f..f5412cad4074 100644 --- a/test/parallel/test-tls-parse-cert-string.js +++ b/test/parallel/test-tls-parse-cert-string.js @@ -10,7 +10,7 @@ const { restoreStderr } = require('../common/hijackstdio'); const assert = require('assert'); -// Flags: --expose_internals +// Flags: --expose-internals const internalTLS = require('internal/tls'); const tls = require('tls'); diff --git a/test/parallel/test-tls-wrap-timeout.js b/test/parallel/test-tls-wrap-timeout.js index 6ae2c39c59b8..7b9cb4170c88 100644 --- a/test/parallel/test-tls-wrap-timeout.js +++ b/test/parallel/test-tls-wrap-timeout.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-util-internal.js b/test/parallel/test-util-internal.js index f16ccfdbdc53..cd38f3e7c57f 100644 --- a/test/parallel/test-util-internal.js +++ b/test/parallel/test-util-internal.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals require('../common'); const assert = require('assert');