diff --git a/benchmark/http2/headers.js b/benchmark/http2/headers.js index dc2fb3a0a1f..f6b29347cdb 100644 --- a/benchmark/http2/headers.js +++ b/benchmark/http2/headers.js @@ -6,7 +6,7 @@ const PORT = common.PORT; const bench = common.createBenchmark(main, { n: [1e3], nheaders: [0, 10, 100, 1000], -}, { flags: ['--expose-http2', '--no-warnings'] }); +}, { flags: ['--no-warnings'] }); function main(conf) { const n = +conf.n; diff --git a/benchmark/http2/respond-with-fd.js b/benchmark/http2/respond-with-fd.js index 2c4c767a96f..a235bd87d51 100644 --- a/benchmark/http2/respond-with-fd.js +++ b/benchmark/http2/respond-with-fd.js @@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, { requests: [100, 1000, 10000, 100000, 1000000], streams: [100, 200, 1000], clients: [1, 2] -}, { flags: ['--expose-http2', '--no-warnings'] }); +}, { flags: ['--no-warnings'] }); function main(conf) { diff --git a/benchmark/http2/simple.js b/benchmark/http2/simple.js index d0674fd9523..8d7767197bc 100644 --- a/benchmark/http2/simple.js +++ b/benchmark/http2/simple.js @@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, { requests: [100, 1000, 10000, 100000], streams: [100, 200, 1000], clients: [1, 2] -}, { flags: ['--expose-http2', '--no-warnings'] }); +}, { flags: ['--no-warnings'] }); function main(conf) { const n = +conf.requests; diff --git a/benchmark/http2/write.js b/benchmark/http2/write.js index 20deff8930b..e4f64cc05de 100644 --- a/benchmark/http2/write.js +++ b/benchmark/http2/write.js @@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, { streams: [100, 200, 1000], length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024], size: [100000] -}, { flags: ['--expose-http2', '--no-warnings'] }); +}, { flags: ['--no-warnings'] }); function main(conf) { const m = +conf.streams; diff --git a/test/parallel/test-http2-binding.js b/test/parallel/test-http2-binding.js index 22c4783b1fa..5b7a74a0324 100644 --- a/test/parallel/test-http2-binding.js +++ b/test/parallel/test-http2-binding.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-data-end.js b/test/parallel/test-http2-client-data-end.js index 8c50389f3b8..569979e73ef 100644 --- a/test/parallel/test-http2-client-data-end.js +++ b/test/parallel/test-http2-client-data-end.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-destroy.js b/test/parallel/test-http2-client-destroy.js index 9a4877578fd..f10bf60ce34 100644 --- a/test/parallel/test-http2-client-destroy.js +++ b/test/parallel/test-http2-client-destroy.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-onconnect-errors.js b/test/parallel/test-http2-client-onconnect-errors.js index 2e9f946194b..51ceb83677c 100644 --- a/test/parallel/test-http2-client-onconnect-errors.js +++ b/test/parallel/test-http2-client-onconnect-errors.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const { diff --git a/test/parallel/test-http2-client-priority-before-connect.js b/test/parallel/test-http2-client-priority-before-connect.js index 7fd81c8b933..7fc3841622e 100644 --- a/test/parallel/test-http2-client-priority-before-connect.js +++ b/test/parallel/test-http2-client-priority-before-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-promisify-connect.js b/test/parallel/test-http2-client-promisify-connect.js index 5b6dccad6a2..f13f5f1408d 100644 --- a/test/parallel/test-http2-client-promisify-connect.js +++ b/test/parallel/test-http2-client-promisify-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-request-options-errors.js b/test/parallel/test-http2-client-request-options-errors.js index 92dad5c8430..5d3fc0ab5a1 100644 --- a/test/parallel/test-http2-client-request-options-errors.js +++ b/test/parallel/test-http2-client-request-options-errors.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-rststream-before-connect.js b/test/parallel/test-http2-client-rststream-before-connect.js index 1a4aa938da6..073b2d4837d 100644 --- a/test/parallel/test-http2-client-rststream-before-connect.js +++ b/test/parallel/test-http2-client-rststream-before-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-set-priority.js b/test/parallel/test-http2-client-set-priority.js index 08c799a6e1f..f3e1d7afa50 100644 --- a/test/parallel/test-http2-client-set-priority.js +++ b/test/parallel/test-http2-client-set-priority.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-settings-before-connect.js b/test/parallel/test-http2-client-settings-before-connect.js index 2ebb0654a31..27caa9e6018 100644 --- a/test/parallel/test-http2-client-settings-before-connect.js +++ b/test/parallel/test-http2-client-settings-before-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-shutdown-before-connect.js b/test/parallel/test-http2-client-shutdown-before-connect.js index 316a41d0f79..4fed0ee3ad0 100644 --- a/test/parallel/test-http2-client-shutdown-before-connect.js +++ b/test/parallel/test-http2-client-shutdown-before-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-socket-destroy.js b/test/parallel/test-http2-client-socket-destroy.js index 9d2fdd3b448..f56a45cc3b5 100644 --- a/test/parallel/test-http2-client-socket-destroy.js +++ b/test/parallel/test-http2-client-socket-destroy.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-stream-destroy-before-connect.js b/test/parallel/test-http2-client-stream-destroy-before-connect.js index 05ba63f0b54..4eefc4b9f32 100644 --- a/test/parallel/test-http2-client-stream-destroy-before-connect.js +++ b/test/parallel/test-http2-client-stream-destroy-before-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-unescaped-path.js b/test/parallel/test-http2-client-unescaped-path.js index 645fb331638..3a7a607bc35 100644 --- a/test/parallel/test-http2-client-unescaped-path.js +++ b/test/parallel/test-http2-client-unescaped-path.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-client-upload.js b/test/parallel/test-http2-client-upload.js index cee86e3fc65..c9c6ebaa7a2 100644 --- a/test/parallel/test-http2-client-upload.js +++ b/test/parallel/test-http2-client-upload.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; // Verifies that uploading data from a client works diff --git a/test/parallel/test-http2-client-write-before-connect.js b/test/parallel/test-http2-client-write-before-connect.js index ed46840266a..26674dcad36 100644 --- a/test/parallel/test-http2-client-write-before-connect.js +++ b/test/parallel/test-http2-client-write-before-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-errors.js b/test/parallel/test-http2-compat-errors.js index dacb39c6dfe..5774d1a922b 100644 --- a/test/parallel/test-http2-compat-errors.js +++ b/test/parallel/test-http2-compat-errors.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 --expose-internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-expect-continue-check.js b/test/parallel/test-http2-compat-expect-continue-check.js index 14e78155204..800df1c4329 100644 --- a/test/parallel/test-http2-compat-expect-continue-check.js +++ b/test/parallel/test-http2-compat-expect-continue-check.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-expect-continue.js b/test/parallel/test-http2-compat-expect-continue.js index 291a70e0f27..6f08e813ef3 100644 --- a/test/parallel/test-http2-compat-expect-continue.js +++ b/test/parallel/test-http2-compat-expect-continue.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-expect-handling.js b/test/parallel/test-http2-compat-expect-handling.js index 774d276b64e..0a5de368c6c 100644 --- a/test/parallel/test-http2-compat-expect-handling.js +++ b/test/parallel/test-http2-compat-expect-handling.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-method-connect.js b/test/parallel/test-http2-compat-method-connect.js index 8e6202317aa..1f43b3891b2 100644 --- a/test/parallel/test-http2-compat-method-connect.js +++ b/test/parallel/test-http2-compat-method-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverrequest-end.js b/test/parallel/test-http2-compat-serverrequest-end.js index a06b13ce9c2..b6bfd04089a 100644 --- a/test/parallel/test-http2-compat-serverrequest-end.js +++ b/test/parallel/test-http2-compat-serverrequest-end.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverrequest-headers.js b/test/parallel/test-http2-compat-serverrequest-headers.js index 5d62e56640a..58cc52c64f6 100644 --- a/test/parallel/test-http2-compat-serverrequest-headers.js +++ b/test/parallel/test-http2-compat-serverrequest-headers.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverrequest-pause.js b/test/parallel/test-http2-compat-serverrequest-pause.js index 60241815727..f8494bb0dde 100644 --- a/test/parallel/test-http2-compat-serverrequest-pause.js +++ b/test/parallel/test-http2-compat-serverrequest-pause.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverrequest-pipe.js b/test/parallel/test-http2-compat-serverrequest-pipe.js index 46926a3c1cc..a19b3191874 100644 --- a/test/parallel/test-http2-compat-serverrequest-pipe.js +++ b/test/parallel/test-http2-compat-serverrequest-pipe.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverrequest-settimeout.js b/test/parallel/test-http2-compat-serverrequest-settimeout.js index 7cdae697cc0..460eb576bfd 100644 --- a/test/parallel/test-http2-compat-serverrequest-settimeout.js +++ b/test/parallel/test-http2-compat-serverrequest-settimeout.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverrequest-trailers.js b/test/parallel/test-http2-compat-serverrequest-trailers.js index 7fa649fe7fa..713e4babd20 100644 --- a/test/parallel/test-http2-compat-serverrequest-trailers.js +++ b/test/parallel/test-http2-compat-serverrequest-trailers.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverrequest.js b/test/parallel/test-http2-compat-serverrequest.js index 64f7b1ad975..edcd7a8f8cd 100644 --- a/test/parallel/test-http2-compat-serverrequest.js +++ b/test/parallel/test-http2-compat-serverrequest.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 '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 9b42ae05dc2..35e39b96708 100644 --- a/test/parallel/test-http2-compat-serverresponse-close.js +++ b/test/parallel/test-http2-compat-serverresponse-close.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 --expose-internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-createpushresponse.js b/test/parallel/test-http2-compat-serverresponse-createpushresponse.js index b45e4f3d9f5..da7c4adbbff 100755 --- a/test/parallel/test-http2-compat-serverresponse-createpushresponse.js +++ b/test/parallel/test-http2-compat-serverresponse-createpushresponse.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-destroy.js b/test/parallel/test-http2-compat-serverresponse-destroy.js index 41f6062d5bc..77e761b6227 100644 --- a/test/parallel/test-http2-compat-serverresponse-destroy.js +++ b/test/parallel/test-http2-compat-serverresponse-destroy.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-drain.js b/test/parallel/test-http2-compat-serverresponse-drain.js index 312b7c75ab6..e2465cfa00d 100644 --- a/test/parallel/test-http2-compat-serverresponse-drain.js +++ b/test/parallel/test-http2-compat-serverresponse-drain.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-end.js b/test/parallel/test-http2-compat-serverresponse-end.js index da45c446711..fafb3ea76dd 100644 --- a/test/parallel/test-http2-compat-serverresponse-end.js +++ b/test/parallel/test-http2-compat-serverresponse-end.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const { diff --git a/test/parallel/test-http2-compat-serverresponse-finished.js b/test/parallel/test-http2-compat-serverresponse-finished.js index d0e67e57ef3..b816b922202 100644 --- a/test/parallel/test-http2-compat-serverresponse-finished.js +++ b/test/parallel/test-http2-compat-serverresponse-finished.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-flushheaders.js b/test/parallel/test-http2-compat-serverresponse-flushheaders.js index c91fac16fb5..68d4789f69b 100644 --- a/test/parallel/test-http2-compat-serverresponse-flushheaders.js +++ b/test/parallel/test-http2-compat-serverresponse-flushheaders.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-headers.js b/test/parallel/test-http2-compat-serverresponse-headers.js index debb746e637..aae1d96c552 100644 --- a/test/parallel/test-http2-compat-serverresponse-headers.js +++ b/test/parallel/test-http2-compat-serverresponse-headers.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-settimeout.js b/test/parallel/test-http2-compat-serverresponse-settimeout.js index 6b5bf03d522..6d06d07f7dc 100644 --- a/test/parallel/test-http2-compat-serverresponse-settimeout.js +++ b/test/parallel/test-http2-compat-serverresponse-settimeout.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-statuscode.js b/test/parallel/test-http2-compat-serverresponse-statuscode.js index ace05ddefe7..96b033328f2 100644 --- a/test/parallel/test-http2-compat-serverresponse-statuscode.js +++ b/test/parallel/test-http2-compat-serverresponse-statuscode.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-statusmessage-property-set.js b/test/parallel/test-http2-compat-serverresponse-statusmessage-property-set.js index bec056d0138..45a876d6743 100644 --- a/test/parallel/test-http2-compat-serverresponse-statusmessage-property-set.js +++ b/test/parallel/test-http2-compat-serverresponse-statusmessage-property-set.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-statusmessage-property.js b/test/parallel/test-http2-compat-serverresponse-statusmessage-property.js index 3b3ef6bdc2c..21a5b6ea4e2 100644 --- a/test/parallel/test-http2-compat-serverresponse-statusmessage-property.js +++ b/test/parallel/test-http2-compat-serverresponse-statusmessage-property.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-statusmessage.js b/test/parallel/test-http2-compat-serverresponse-statusmessage.js index 0c74a2c8f2e..841bafe724a 100644 --- a/test/parallel/test-http2-compat-serverresponse-statusmessage.js +++ b/test/parallel/test-http2-compat-serverresponse-statusmessage.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-trailers.js b/test/parallel/test-http2-compat-serverresponse-trailers.js index 3f3aa2045b4..4d93e14dbec 100755 --- a/test/parallel/test-http2-compat-serverresponse-trailers.js +++ b/test/parallel/test-http2-compat-serverresponse-trailers.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-serverresponse-write-no-cb.js b/test/parallel/test-http2-compat-serverresponse-write-no-cb.js index bc864af46df..58a4ca053d2 100644 --- a/test/parallel/test-http2-compat-serverresponse-write-no-cb.js +++ b/test/parallel/test-http2-compat-serverresponse-write-no-cb.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const { mustCall, diff --git a/test/parallel/test-http2-compat-serverresponse-writehead.js b/test/parallel/test-http2-compat-serverresponse-writehead.js index 2e826132adb..704f199ca27 100644 --- a/test/parallel/test-http2-compat-serverresponse-writehead.js +++ b/test/parallel/test-http2-compat-serverresponse-writehead.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-connect-method.js b/test/parallel/test-http2-connect-method.js index 3626c7f2e51..78c9a345293 100644 --- a/test/parallel/test-http2-connect-method.js +++ b/test/parallel/test-http2-connect-method.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-connect.js b/test/parallel/test-http2-connect.js index 60777dadeb8..e5a4e429907 100644 --- a/test/parallel/test-http2-connect.js +++ b/test/parallel/test-http2-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const { mustCall, hasCrypto, skip, expectsError } = require('../common'); diff --git a/test/parallel/test-http2-cookies.js b/test/parallel/test-http2-cookies.js index b2f0a3bf6c2..48b08b6367b 100644 --- a/test/parallel/test-http2-cookies.js +++ b/test/parallel/test-http2-cookies.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-create-client-connect.js b/test/parallel/test-http2-create-client-connect.js index 73935d286bb..7fdea9aef41 100644 --- a/test/parallel/test-http2-create-client-connect.js +++ b/test/parallel/test-http2-create-client-connect.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; // Tests http2.connect() diff --git a/test/parallel/test-http2-create-client-secure-session.js b/test/parallel/test-http2-create-client-secure-session.js index 03d4202dd42..7447d4e5c63 100644 --- a/test/parallel/test-http2-create-client-secure-session.js +++ b/test/parallel/test-http2-create-client-secure-session.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-create-client-session.js b/test/parallel/test-http2-create-client-session.js index 22ab368f7bc..149b5164231 100644 --- a/test/parallel/test-http2-create-client-session.js +++ b/test/parallel/test-http2-create-client-session.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-createsecureserver-nooptions.js b/test/parallel/test-http2-createsecureserver-nooptions.js index 5a9849f9e11..652a2815069 100644 --- a/test/parallel/test-http2-createsecureserver-nooptions.js +++ b/test/parallel/test-http2-createsecureserver-nooptions.js @@ -1,4 +1,3 @@ -// Flags: --expose-http2 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-createwritereq.js b/test/parallel/test-http2-createwritereq.js index f4151d94e6a..e4ecfa81725 100644 --- a/test/parallel/test-http2-createwritereq.js +++ b/test/parallel/test-http2-createwritereq.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-date-header.js b/test/parallel/test-http2-date-header.js index d7afeb5e2b9..3ff01951e51 100644 --- a/test/parallel/test-http2-date-header.js +++ b/test/parallel/test-http2-date-header.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-dont-override.js b/test/parallel/test-http2-dont-override.js index d8573eac340..777da034d26 100644 --- a/test/parallel/test-http2-dont-override.js +++ b/test/parallel/test-http2-dont-override.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-getpackedsettings.js b/test/parallel/test-http2-getpackedsettings.js index 8c46afcb57f..154749e5990 100644 --- a/test/parallel/test-http2-getpackedsettings.js +++ b/test/parallel/test-http2-getpackedsettings.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-goaway-opaquedata.js b/test/parallel/test-http2-goaway-opaquedata.js index 9ff8b13cafd..663bcce3257 100644 --- a/test/parallel/test-http2-goaway-opaquedata.js +++ b/test/parallel/test-http2-goaway-opaquedata.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-head-request.js b/test/parallel/test-http2-head-request.js index ee86ded5498..63d07484499 100644 --- a/test/parallel/test-http2-head-request.js +++ b/test/parallel/test-http2-head-request.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-https-fallback.js b/test/parallel/test-http2-https-fallback.js index 9fd3d94b3ca..c743434be12 100644 --- a/test/parallel/test-http2-https-fallback.js +++ b/test/parallel/test-http2-https-fallback.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-info-headers.js b/test/parallel/test-http2-info-headers.js index 22340c48ee8..70d3f2f74c0 100644 --- a/test/parallel/test-http2-info-headers.js +++ b/test/parallel/test-http2-info-headers.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-max-concurrent-streams.js b/test/parallel/test-http2-max-concurrent-streams.js index be101720dc4..5b1dc2e1ca0 100644 --- a/test/parallel/test-http2-max-concurrent-streams.js +++ b/test/parallel/test-http2-max-concurrent-streams.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-methods.js b/test/parallel/test-http2-methods.js index dac61359ec0..436c6d9d07d 100644 --- a/test/parallel/test-http2-methods.js +++ b/test/parallel/test-http2-methods.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-misused-pseudoheaders.js b/test/parallel/test-http2-misused-pseudoheaders.js index 2744561025d..b781f89dc21 100644 --- a/test/parallel/test-http2-misused-pseudoheaders.js +++ b/test/parallel/test-http2-misused-pseudoheaders.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-multi-content-length.js b/test/parallel/test-http2-multi-content-length.js index da7fbd33a9f..30f2b0a960f 100644 --- a/test/parallel/test-http2-multi-content-length.js +++ b/test/parallel/test-http2-multi-content-length.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-multiheaders-raw.js b/test/parallel/test-http2-multiheaders-raw.js index f9c7cc5f9bd..dbad8466baf 100644 --- a/test/parallel/test-http2-multiheaders-raw.js +++ b/test/parallel/test-http2-multiheaders-raw.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-multiheaders.js b/test/parallel/test-http2-multiheaders.js index bcdc9458b32..48d25d0d618 100644 --- a/test/parallel/test-http2-multiheaders.js +++ b/test/parallel/test-http2-multiheaders.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-multiplex.js b/test/parallel/test-http2-multiplex.js index 22622392b8c..d2d2be1f644 100644 --- a/test/parallel/test-http2-multiplex.js +++ b/test/parallel/test-http2-multiplex.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; // Tests opening 100 concurrent simultaneous uploading streams over a single diff --git a/test/parallel/test-http2-noflag.js b/test/parallel/test-http2-noflag.js deleted file mode 100644 index 903fd649c5e..00000000000 --- a/test/parallel/test-http2-noflag.js +++ /dev/null @@ -1,8 +0,0 @@ -// The --expose-http2 flag is not set -'use strict'; - -require('../common'); -const assert = require('assert'); - -assert.throws(() => require('http2'), // eslint-disable-line crypto-check - /^Error: Cannot find module 'http2'$/); diff --git a/test/parallel/test-http2-options-max-headers-block-length.js b/test/parallel/test-http2-options-max-headers-block-length.js index 6b47a248980..7c31289c5ed 100644 --- a/test/parallel/test-http2-options-max-headers-block-length.js +++ b/test/parallel/test-http2-options-max-headers-block-length.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-options-max-reserved-streams.js b/test/parallel/test-http2-options-max-reserved-streams.js index 6d4957342d7..23c9d8c0459 100644 --- a/test/parallel/test-http2-options-max-reserved-streams.js +++ b/test/parallel/test-http2-options-max-reserved-streams.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-padding-callback.js b/test/parallel/test-http2-padding-callback.js index a63f1041f3f..5c823dfb834 100644 --- a/test/parallel/test-http2-padding-callback.js +++ b/test/parallel/test-http2-padding-callback.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-priority-event.js b/test/parallel/test-http2-priority-event.js index b577fdb3763..673c8bb46ac 100644 --- a/test/parallel/test-http2-priority-event.js +++ b/test/parallel/test-http2-priority-event.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-request-response-proto.js b/test/parallel/test-http2-request-response-proto.js index 3bbf8e86434..8fc3bc18f44 100644 --- a/test/parallel/test-http2-request-response-proto.js +++ b/test/parallel/test-http2-request-response-proto.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-204.js b/test/parallel/test-http2-respond-file-204.js index d52a35136d5..3cb08118b29 100644 --- a/test/parallel/test-http2-respond-file-204.js +++ b/test/parallel/test-http2-respond-file-204.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-304.js b/test/parallel/test-http2-respond-file-304.js index dcda6319738..23169702222 100644 --- a/test/parallel/test-http2-respond-file-304.js +++ b/test/parallel/test-http2-respond-file-304.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-404.js b/test/parallel/test-http2-respond-file-404.js index b8e2a39c9a2..3d4ae9aa879 100644 --- a/test/parallel/test-http2-respond-file-404.js +++ b/test/parallel/test-http2-respond-file-404.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-compat.js b/test/parallel/test-http2-respond-file-compat.js index 230f2aa23d4..6e9eb73239f 100644 --- a/test/parallel/test-http2-respond-file-compat.js +++ b/test/parallel/test-http2-respond-file-compat.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-error-dir.js b/test/parallel/test-http2-respond-file-error-dir.js index fd212a4c339..e49f117bc21 100644 --- a/test/parallel/test-http2-respond-file-error-dir.js +++ b/test/parallel/test-http2-respond-file-error-dir.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-errors.js b/test/parallel/test-http2-respond-file-errors.js index cb87202e02c..6a85a0ae405 100644 --- a/test/parallel/test-http2-respond-file-errors.js +++ b/test/parallel/test-http2-respond-file-errors.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-fd-errors.js b/test/parallel/test-http2-respond-file-fd-errors.js index 99cb13e0838..34c4698d445 100644 --- a/test/parallel/test-http2-respond-file-fd-errors.js +++ b/test/parallel/test-http2-respond-file-fd-errors.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-fd-invalid.js b/test/parallel/test-http2-respond-file-fd-invalid.js index 7e08a29e937..ebc59e6ffd6 100644 --- a/test/parallel/test-http2-respond-file-fd-invalid.js +++ b/test/parallel/test-http2-respond-file-fd-invalid.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-fd-range.js b/test/parallel/test-http2-respond-file-fd-range.js index ddd91b3f848..7dfaa61adef 100644 --- a/test/parallel/test-http2-respond-file-fd-range.js +++ b/test/parallel/test-http2-respond-file-fd-range.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; // Tests the ability to minimally request a byte range with respondWithFD diff --git a/test/parallel/test-http2-respond-file-fd.js b/test/parallel/test-http2-respond-file-fd.js index 4d5aa7670c1..205a83bb28f 100644 --- a/test/parallel/test-http2-respond-file-fd.js +++ b/test/parallel/test-http2-respond-file-fd.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-push.js b/test/parallel/test-http2-respond-file-push.js index abcd72d598b..5d22ca3ba20 100644 --- a/test/parallel/test-http2-respond-file-push.js +++ b/test/parallel/test-http2-respond-file-push.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file-range.js b/test/parallel/test-http2-respond-file-range.js index a4fda25a901..de4517fc968 100644 --- a/test/parallel/test-http2-respond-file-range.js +++ b/test/parallel/test-http2-respond-file-range.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-file.js b/test/parallel/test-http2-respond-file.js index 9ca17b32513..a04fc3cfc2e 100644 --- a/test/parallel/test-http2-respond-file.js +++ b/test/parallel/test-http2-respond-file.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-respond-no-data.js b/test/parallel/test-http2-respond-no-data.js index b2fbf44af19..5814d57ea15 100644 --- a/test/parallel/test-http2-respond-no-data.js +++ b/test/parallel/test-http2-respond-no-data.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-response-splitting.js b/test/parallel/test-http2-response-splitting.js index 557967a3df6..97ef08bfc40 100644 --- a/test/parallel/test-http2-response-splitting.js +++ b/test/parallel/test-http2-response-splitting.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; // Response splitting is no longer an issue with HTTP/2. The underlying diff --git a/test/parallel/test-http2-serve-file.js b/test/parallel/test-http2-serve-file.js index 6f39094328a..4aee25cafa0 100644 --- a/test/parallel/test-http2-serve-file.js +++ b/test/parallel/test-http2-serve-file.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-destroy-before-additional.js b/test/parallel/test-http2-server-destroy-before-additional.js index 5e04a87323e..d3edd559d9e 100644 --- a/test/parallel/test-http2-server-destroy-before-additional.js +++ b/test/parallel/test-http2-server-destroy-before-additional.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-destroy-before-priority.js b/test/parallel/test-http2-server-destroy-before-priority.js index 74d7c011ba0..c0d6e01135a 100644 --- a/test/parallel/test-http2-server-destroy-before-priority.js +++ b/test/parallel/test-http2-server-destroy-before-priority.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-destroy-before-push.js b/test/parallel/test-http2-server-destroy-before-push.js index 429f37e2c68..02e0fa01bd0 100644 --- a/test/parallel/test-http2-server-destroy-before-push.js +++ b/test/parallel/test-http2-server-destroy-before-push.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-destroy-before-respond.js b/test/parallel/test-http2-server-destroy-before-respond.js index 4ea64e82812..584d98a30ee 100644 --- a/test/parallel/test-http2-server-destroy-before-respond.js +++ b/test/parallel/test-http2-server-destroy-before-respond.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-destroy-before-rst.js b/test/parallel/test-http2-server-destroy-before-rst.js index f066e76b5f9..7630ba38741 100644 --- a/test/parallel/test-http2-server-destroy-before-rst.js +++ b/test/parallel/test-http2-server-destroy-before-rst.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-destroy-before-state.js b/test/parallel/test-http2-server-destroy-before-state.js index f5dce3e30a2..f3392d5e074 100644 --- a/test/parallel/test-http2-server-destroy-before-state.js +++ b/test/parallel/test-http2-server-destroy-before-state.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-destroy-before-write.js b/test/parallel/test-http2-server-destroy-before-write.js index 724e12624ef..f23f9d31c8f 100644 --- a/test/parallel/test-http2-server-destroy-before-write.js +++ b/test/parallel/test-http2-server-destroy-before-write.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// '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 9280d63edb6..7d7db6a2453 100644 --- a/test/parallel/test-http2-server-errors.js +++ b/test/parallel/test-http2-server-errors.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 --expose-internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-push-disabled.js b/test/parallel/test-http2-server-push-disabled.js index a9cdbd62397..a529fa9f214 100644 --- a/test/parallel/test-http2-server-push-disabled.js +++ b/test/parallel/test-http2-server-push-disabled.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-push-stream-errors-args.js b/test/parallel/test-http2-server-push-stream-errors-args.js index 9924517d406..d02cf0bf264 100644 --- a/test/parallel/test-http2-server-push-stream-errors-args.js +++ b/test/parallel/test-http2-server-push-stream-errors-args.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-push-stream-errors.js b/test/parallel/test-http2-server-push-stream-errors.js index d686fc15f1b..dd76954d9c4 100644 --- a/test/parallel/test-http2-server-push-stream-errors.js +++ b/test/parallel/test-http2-server-push-stream-errors.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-push-stream-head.js b/test/parallel/test-http2-server-push-stream-head.js index a1172b8ecf3..dc88e4fb4b4 100644 --- a/test/parallel/test-http2-server-push-stream-head.js +++ b/test/parallel/test-http2-server-push-stream-head.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-push-stream.js b/test/parallel/test-http2-server-push-stream.js index c79ff7caecf..2e20f3143da 100644 --- a/test/parallel/test-http2-server-push-stream.js +++ b/test/parallel/test-http2-server-push-stream.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-rst-before-respond.js b/test/parallel/test-http2-server-rst-before-respond.js index d8e9d0a6cc5..4b1b75ab248 100644 --- a/test/parallel/test-http2-server-rst-before-respond.js +++ b/test/parallel/test-http2-server-rst-before-respond.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-rst-stream.js b/test/parallel/test-http2-server-rst-stream.js index 38bfb62af54..a6bcf67d8c4 100644 --- a/test/parallel/test-http2-server-rst-stream.js +++ b/test/parallel/test-http2-server-rst-stream.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-set-header.js b/test/parallel/test-http2-server-set-header.js index b681469ece2..2767aed4c41 100644 --- a/test/parallel/test-http2-server-set-header.js +++ b/test/parallel/test-http2-server-set-header.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-settimeout-no-callback.js b/test/parallel/test-http2-server-settimeout-no-callback.js index eff0418fa7b..f9d7bdfa97e 100644 --- a/test/parallel/test-http2-server-settimeout-no-callback.js +++ b/test/parallel/test-http2-server-settimeout-no-callback.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-shutdown-before-respond.js b/test/parallel/test-http2-server-shutdown-before-respond.js index f870edc7be6..8095923a084 100644 --- a/test/parallel/test-http2-server-shutdown-before-respond.js +++ b/test/parallel/test-http2-server-shutdown-before-respond.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-socket-destroy.js b/test/parallel/test-http2-server-socket-destroy.js index d77f7355676..6bf5934e3e0 100644 --- a/test/parallel/test-http2-server-socket-destroy.js +++ b/test/parallel/test-http2-server-socket-destroy.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-socketerror.js b/test/parallel/test-http2-server-socketerror.js index 5bbb2130f0e..069297aa3fa 100644 --- a/test/parallel/test-http2-server-socketerror.js +++ b/test/parallel/test-http2-server-socketerror.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-server-startup.js b/test/parallel/test-http2-server-startup.js index fc76f9b2170..84574bab96e 100644 --- a/test/parallel/test-http2-server-startup.js +++ b/test/parallel/test-http2-server-startup.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; // Tests the basic operation of creating a plaintext or TLS diff --git a/test/parallel/test-http2-server-timeout.js b/test/parallel/test-http2-server-timeout.js index c3a8ef88517..257d9eb1c64 100755 --- a/test/parallel/test-http2-server-timeout.js +++ b/test/parallel/test-http2-server-timeout.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-session-settings.js b/test/parallel/test-http2-session-settings.js index 4570d23ad38..046b33b696c 100644 --- a/test/parallel/test-http2-session-settings.js +++ b/test/parallel/test-http2-session-settings.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-session-stream-state.js b/test/parallel/test-http2-session-stream-state.js index f122b271899..b830a6de61a 100644 --- a/test/parallel/test-http2-session-stream-state.js +++ b/test/parallel/test-http2-session-stream-state.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-single-headers.js b/test/parallel/test-http2-single-headers.js index cf66e570f91..7fd9aba6168 100644 --- a/test/parallel/test-http2-single-headers.js +++ b/test/parallel/test-http2-single-headers.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-status-code-invalid.js b/test/parallel/test-http2-status-code-invalid.js index 0fe8319db41..93b734d97bd 100644 --- a/test/parallel/test-http2-status-code-invalid.js +++ b/test/parallel/test-http2-status-code-invalid.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-status-code.js b/test/parallel/test-http2-status-code.js index 9a6821b1d66..af4f2faf093 100644 --- a/test/parallel/test-http2-status-code.js +++ b/test/parallel/test-http2-status-code.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-stream-client.js b/test/parallel/test-http2-stream-client.js index 658c66ce7af..0a899330baa 100644 --- a/test/parallel/test-http2-stream-client.js +++ b/test/parallel/test-http2-stream-client.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-timeouts.js b/test/parallel/test-http2-timeouts.js index 66fabdbbd80..6f85af75470 100755 --- a/test/parallel/test-http2-timeouts.js +++ b/test/parallel/test-http2-timeouts.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-too-many-settings.js b/test/parallel/test-http2-too-many-settings.js index 849e24af4e7..9b41c90a397 100644 --- a/test/parallel/test-http2-too-many-settings.js +++ b/test/parallel/test-http2-too-many-settings.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; // Tests that attempting to send too many non-acknowledged diff --git a/test/parallel/test-http2-trailers.js b/test/parallel/test-http2-trailers.js index 282899e65eb..b150daafbfd 100644 --- a/test/parallel/test-http2-trailers.js +++ b/test/parallel/test-http2-trailers.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-util-asserts.js b/test/parallel/test-http2-util-asserts.js index fd902f01a3d..3e1703d158f 100644 --- a/test/parallel/test-http2-util-asserts.js +++ b/test/parallel/test-http2-util-asserts.js @@ -1,4 +1,4 @@ -// Flags: --expose-internals --expose-http2 +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-util-headers-list.js b/test/parallel/test-http2-util-headers-list.js index 7e6bb7ece20..0bc06bb7277 100644 --- a/test/parallel/test-http2-util-headers-list.js +++ b/test/parallel/test-http2-util-headers-list.js @@ -1,4 +1,4 @@ -// Flags: --expose-internals --expose-http2 +// Flags: --expose-internals 'use strict'; // Tests the internal utility function that is used to prepare headers diff --git a/test/parallel/test-http2-window-size.js b/test/parallel/test-http2-window-size.js index 57e27ac29bf..dd247c6a69d 100644 --- a/test/parallel/test-http2-window-size.js +++ b/test/parallel/test-http2-window-size.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; // This test ensures that servers are able to send data independent of window diff --git a/test/parallel/test-http2-withflag.js b/test/parallel/test-http2-withflag.js index 069212257c2..0b614a2e203 100644 --- a/test/parallel/test-http2-withflag.js +++ b/test/parallel/test-http2-withflag.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-write-callbacks.js b/test/parallel/test-http2-write-callbacks.js index e45e8ccb7d4..c5b5520e8f9 100644 --- a/test/parallel/test-http2-write-callbacks.js +++ b/test/parallel/test-http2-write-callbacks.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; // Verifies that write callbacks are called diff --git a/test/parallel/test-http2-write-empty-string.js b/test/parallel/test-http2-write-empty-string.js index e7a55e5c0a4..468ce0bbc91 100644 --- a/test/parallel/test-http2-write-empty-string.js +++ b/test/parallel/test-http2-write-empty-string.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-zero-length-write.js b/test/parallel/test-http2-zero-length-write.js index f261cc72961..529dad8b8b6 100644 --- a/test/parallel/test-http2-zero-length-write.js +++ b/test/parallel/test-http2-zero-length-write.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common'); diff --git a/test/sequential/test-http2-session-timeout.js b/test/sequential/test-http2-session-timeout.js index a7c6184442a..84cef1f7f52 100644 --- a/test/sequential/test-http2-session-timeout.js +++ b/test/sequential/test-http2-session-timeout.js @@ -1,4 +1,4 @@ -// Flags: --expose-http2 +// 'use strict'; const common = require('../common');