summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-10-08 18:41:21 +0200
committerRich Trott <rtrott@gmail.com>2019-10-10 11:59:31 -0700
commitf7b5eacaa686c9c49041ac2d1b1899af3346bc6e (patch)
treedb62a9a37b7f3367271d59d5ec2fddf18833f84f /test
parent4885e50f7ef7f77a87fbb9f56fb088afebfa8b4a (diff)
downloadandroid-node-v8-f7b5eacaa686c9c49041ac2d1b1899af3346bc6e.tar.gz
android-node-v8-f7b5eacaa686c9c49041ac2d1b1899af3346bc6e.tar.bz2
android-node-v8-f7b5eacaa686c9c49041ac2d1b1899af3346bc6e.zip
test: remove unnecessary --expose-internals flags
PR-URL: https://github.com/nodejs/node/pull/29886 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test')
-rw-r--r--test/async-hooks/test-httpparser.request.js1
-rw-r--r--test/async-hooks/test-httpparser.response.js1
-rw-r--r--test/common/inspector-helper.js2
-rw-r--r--test/parallel/test-bootstrap-modules.js1
-rw-r--r--test/parallel/test-http2-compat-errors.js1
-rw-r--r--test/parallel/test-http2-compat-serverresponse-close.js1
-rw-r--r--test/parallel/test-http2-server-errors.js2
-rw-r--r--test/parallel/test-http2-session-unref.js2
-rw-r--r--test/parallel/test-inspect-async-hook-setup-at-inspect.js1
-rw-r--r--test/parallel/test-inspector-esm.js1
-rw-r--r--test/parallel/test-inspector-multisession-ws.js1
-rw-r--r--test/parallel/test-inspector-reported-host.js1
-rw-r--r--test/parallel/test-inspector-wait-for-connection.js2
-rw-r--r--test/parallel/test-inspector-waiting-for-disconnect.js1
-rw-r--r--test/sequential/test-http-regr-gh-2928.js1
-rw-r--r--test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js1
-rw-r--r--test/sequential/test-inspector-async-stack-traces-promise-then.js1
-rw-r--r--test/sequential/test-inspector-async-stack-traces-set-interval.js1
-rw-r--r--test/sequential/test-inspector-break-e.js1
-rw-r--r--test/sequential/test-inspector-break-when-eval.js1
-rw-r--r--test/sequential/test-inspector-console.js1
-rw-r--r--test/sequential/test-inspector-debug-brk-flag.js1
-rw-r--r--test/sequential/test-inspector-debug-end.js1
-rw-r--r--test/sequential/test-inspector-exception.js1
-rw-r--r--test/sequential/test-inspector-ip-detection.js1
-rw-r--r--test/sequential/test-inspector-not-blocked-on-idle.js1
-rw-r--r--test/sequential/test-inspector-runtime-evaluate-with-timeout.js1
-rw-r--r--test/sequential/test-inspector-scriptparsed-context.js1
-rw-r--r--test/sequential/test-inspector-stop-profile-after-done.js1
-rw-r--r--test/sequential/test-inspector-stress-http.js1
-rw-r--r--test/sequential/test-inspector.js1
-rw-r--r--test/wpt/test-console.js3
-rw-r--r--test/wpt/test-encoding.js3
-rw-r--r--test/wpt/test-microtask-queuing.js2
34 files changed, 1 insertions, 42 deletions
diff --git a/test/async-hooks/test-httpparser.request.js b/test/async-hooks/test-httpparser.request.js
index f4552398d3..cd61aa25e3 100644
--- a/test/async-hooks/test-httpparser.request.js
+++ b/test/async-hooks/test-httpparser.request.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/async-hooks/test-httpparser.response.js b/test/async-hooks/test-httpparser.response.js
index a207a62636..d6625661eb 100644
--- a/test/async-hooks/test-httpparser.response.js
+++ b/test/async-hooks/test-httpparser.response.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/common/inspector-helper.js b/test/common/inspector-helper.js
index b0c02b8fc5..42d6baed44 100644
--- a/test/common/inspector-helper.js
+++ b/test/common/inspector-helper.js
@@ -6,7 +6,7 @@ const http = require('http');
const fixtures = require('../common/fixtures');
const { spawn } = require('child_process');
const { parse: parseURL } = require('url');
-const { pathToFileURL } = require('internal/url');
+const { pathToFileURL } = require('url');
const { EventEmitter } = require('events');
const _MAINSCRIPT = fixtures.path('loop.js');
diff --git a/test/parallel/test-bootstrap-modules.js b/test/parallel/test-bootstrap-modules.js
index 7ca48c49cb..939658a3b0 100644
--- a/test/parallel/test-bootstrap-modules.js
+++ b/test/parallel/test-bootstrap-modules.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
// This list must be computed before we require any modules to
diff --git a/test/parallel/test-http2-compat-errors.js b/test/parallel/test-http2-compat-errors.js
index c84318bad6..18dc385422 100644
--- a/test/parallel/test-http2-compat-errors.js
+++ b/test/parallel/test-http2-compat-errors.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/parallel/test-http2-compat-serverresponse-close.js b/test/parallel/test-http2-compat-serverresponse-close.js
index 0ff6bd3a83..71079f425c 100644
--- a/test/parallel/test-http2-compat-serverresponse-close.js
+++ b/test/parallel/test-http2-compat-serverresponse-close.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/parallel/test-http2-server-errors.js b/test/parallel/test-http2-server-errors.js
index fec6cc84be..959ddccdc7 100644
--- a/test/parallel/test-http2-server-errors.js
+++ b/test/parallel/test-http2-server-errors.js
@@ -1,6 +1,4 @@
-// Flags: --expose-internals
'use strict';
-
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
diff --git a/test/parallel/test-http2-session-unref.js b/test/parallel/test-http2-session-unref.js
index dcfbccf215..8afd659d33 100644
--- a/test/parallel/test-http2-session-unref.js
+++ b/test/parallel/test-http2-session-unref.js
@@ -1,6 +1,4 @@
'use strict';
-// Flags: --expose-internals
-
// Tests that calling unref() on Http2Session:
// (1) Prevents it from keeping the process alive
// (2) Doesn't crash
diff --git a/test/parallel/test-inspect-async-hook-setup-at-inspect.js b/test/parallel/test-inspect-async-hook-setup-at-inspect.js
index 48de93c061..b68617b5d5 100644
--- a/test/parallel/test-inspect-async-hook-setup-at-inspect.js
+++ b/test/parallel/test-inspect-async-hook-setup-at-inspect.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/parallel/test-inspector-esm.js b/test/parallel/test-inspector-esm.js
index d94f8d10bb..b5f55b68d7 100644
--- a/test/parallel/test-inspector-esm.js
+++ b/test/parallel/test-inspector-esm.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/parallel/test-inspector-multisession-ws.js b/test/parallel/test-inspector-multisession-ws.js
index 02fde12e1c..6b07af0b85 100644
--- a/test/parallel/test-inspector-multisession-ws.js
+++ b/test/parallel/test-inspector-multisession-ws.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/parallel/test-inspector-reported-host.js b/test/parallel/test-inspector-reported-host.js
index 142003e49f..b3bc736803 100644
--- a/test/parallel/test-inspector-reported-host.js
+++ b/test/parallel/test-inspector-reported-host.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/parallel/test-inspector-wait-for-connection.js b/test/parallel/test-inspector-wait-for-connection.js
index e6cfd81deb..44bb6dd5e1 100644
--- a/test/parallel/test-inspector-wait-for-connection.js
+++ b/test/parallel/test-inspector-wait-for-connection.js
@@ -1,5 +1,3 @@
-// Flags: --expose-internals
-
'use strict';
const common = require('../common');
diff --git a/test/parallel/test-inspector-waiting-for-disconnect.js b/test/parallel/test-inspector-waiting-for-disconnect.js
index 4c2ebdb1da..187875abc1 100644
--- a/test/parallel/test-inspector-waiting-for-disconnect.js
+++ b/test/parallel/test-inspector-waiting-for-disconnect.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/sequential/test-http-regr-gh-2928.js b/test/sequential/test-http-regr-gh-2928.js
index 5111e234d1..149aaeb6e6 100644
--- a/test/sequential/test-http-regr-gh-2928.js
+++ b/test/sequential/test-http-regr-gh-2928.js
@@ -1,7 +1,6 @@
// This test is designed to fail with a segmentation fault in Node.js 4.1.0 and
// execute without issues in Node.js 4.1.1 and up.
-// Flags: --expose-internals
'use strict';
const common = require('../common');
const assert = require('assert');
diff --git a/test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js b/test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js
index 85a612be21..595f934c02 100644
--- a/test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js
+++ b/test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-async-stack-traces-promise-then.js b/test/sequential/test-inspector-async-stack-traces-promise-then.js
index a6bbd2686c..f9a30e3f54 100644
--- a/test/sequential/test-inspector-async-stack-traces-promise-then.js
+++ b/test/sequential/test-inspector-async-stack-traces-promise-then.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-async-stack-traces-set-interval.js b/test/sequential/test-inspector-async-stack-traces-set-interval.js
index 451cc14b1c..ee37a65495 100644
--- a/test/sequential/test-inspector-async-stack-traces-set-interval.js
+++ b/test/sequential/test-inspector-async-stack-traces-set-interval.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-break-e.js b/test/sequential/test-inspector-break-e.js
index 6d4fbbb474..6aae729977 100644
--- a/test/sequential/test-inspector-break-e.js
+++ b/test/sequential/test-inspector-break-e.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-break-when-eval.js b/test/sequential/test-inspector-break-when-eval.js
index 9952650252..c419a0c530 100644
--- a/test/sequential/test-inspector-break-when-eval.js
+++ b/test/sequential/test-inspector-break-when-eval.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-console.js b/test/sequential/test-inspector-console.js
index 3d36e9328d..15e2e2e8f6 100644
--- a/test/sequential/test-inspector-console.js
+++ b/test/sequential/test-inspector-console.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/sequential/test-inspector-debug-brk-flag.js b/test/sequential/test-inspector-debug-brk-flag.js
index 7fa85c269c..f281f2c09c 100644
--- a/test/sequential/test-inspector-debug-brk-flag.js
+++ b/test/sequential/test-inspector-debug-brk-flag.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/sequential/test-inspector-debug-end.js b/test/sequential/test-inspector-debug-end.js
index 4c775981f1..789fe9c763 100644
--- a/test/sequential/test-inspector-debug-end.js
+++ b/test/sequential/test-inspector-debug-end.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-exception.js b/test/sequential/test-inspector-exception.js
index de089ec240..9a453eb7de 100644
--- a/test/sequential/test-inspector-exception.js
+++ b/test/sequential/test-inspector-exception.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
diff --git a/test/sequential/test-inspector-ip-detection.js b/test/sequential/test-inspector-ip-detection.js
index 4e0f9b871b..6af06bb482 100644
--- a/test/sequential/test-inspector-ip-detection.js
+++ b/test/sequential/test-inspector-ip-detection.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/sequential/test-inspector-not-blocked-on-idle.js b/test/sequential/test-inspector-not-blocked-on-idle.js
index b5a16316de..032efd6a9f 100644
--- a/test/sequential/test-inspector-not-blocked-on-idle.js
+++ b/test/sequential/test-inspector-not-blocked-on-idle.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-runtime-evaluate-with-timeout.js b/test/sequential/test-inspector-runtime-evaluate-with-timeout.js
index 79c746540b..b20aa77a5d 100644
--- a/test/sequential/test-inspector-runtime-evaluate-with-timeout.js
+++ b/test/sequential/test-inspector-runtime-evaluate-with-timeout.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/sequential/test-inspector-scriptparsed-context.js b/test/sequential/test-inspector-scriptparsed-context.js
index 944829f59d..3a4c3f8469 100644
--- a/test/sequential/test-inspector-scriptparsed-context.js
+++ b/test/sequential/test-inspector-scriptparsed-context.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-stop-profile-after-done.js b/test/sequential/test-inspector-stop-profile-after-done.js
index cde1a02560..e242658e29 100644
--- a/test/sequential/test-inspector-stop-profile-after-done.js
+++ b/test/sequential/test-inspector-stop-profile-after-done.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
diff --git a/test/sequential/test-inspector-stress-http.js b/test/sequential/test-inspector-stress-http.js
index fd168f29f7..8d4a2db957 100644
--- a/test/sequential/test-inspector-stress-http.js
+++ b/test/sequential/test-inspector-stress-http.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/sequential/test-inspector.js b/test/sequential/test-inspector.js
index 0438191858..b5ced63164 100644
--- a/test/sequential/test-inspector.js
+++ b/test/sequential/test-inspector.js
@@ -1,4 +1,3 @@
-// Flags: --expose-internals
'use strict';
const common = require('../common');
diff --git a/test/wpt/test-console.js b/test/wpt/test-console.js
index 7b23fe8d3e..ae0e338547 100644
--- a/test/wpt/test-console.js
+++ b/test/wpt/test-console.js
@@ -1,7 +1,4 @@
'use strict';
-
-// Flags: --expose-internals
-
require('../common');
const { WPTRunner } = require('../common/wpt');
diff --git a/test/wpt/test-encoding.js b/test/wpt/test-encoding.js
index 8145debd66..8cd0d5e04e 100644
--- a/test/wpt/test-encoding.js
+++ b/test/wpt/test-encoding.js
@@ -1,7 +1,4 @@
'use strict';
-
-// Flags: --expose-internals
-
require('../common');
const { MessageChannel } = require('worker_threads');
const { WPTRunner } = require('../common/wpt');
diff --git a/test/wpt/test-microtask-queuing.js b/test/wpt/test-microtask-queuing.js
index a600bf58d7..84f29ac2b9 100644
--- a/test/wpt/test-microtask-queuing.js
+++ b/test/wpt/test-microtask-queuing.js
@@ -1,7 +1,5 @@
'use strict';
-// Flags: --expose-internals
-
require('../common');
const { WPTRunner } = require('../common/wpt');