summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2020-12-06 10:07:47 +0100
committerMichael Dawson <mdawson@devrus.com>2020-12-10 20:21:26 -0500
commit7e5bf48998f7bd0a512d7e5340e1614dfdc8cf97 (patch)
tree10fc19b922171a567ca5ff54ef031130effd3988 /test
parent72b07e4fcf8843ec0c7a82ba2ec3250429671ef5 (diff)
downloadios-node-v8-7e5bf48998f7bd0a512d7e5340e1614dfdc8cf97.tar.gz
ios-node-v8-7e5bf48998f7bd0a512d7e5340e1614dfdc8cf97.tar.bz2
ios-node-v8-7e5bf48998f7bd0a512d7e5340e1614dfdc8cf97.zip
build,lib,test: change whitelist to allowlist
PR-URL: https://github.com/nodejs/node/pull/36406 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/common/README.md8
-rw-r--r--test/common/index.js4
-rw-r--r--test/parallel/test-process-binding-internalbinding-allowlist.js (renamed from test/parallel/test-process-binding-internalbinding-whitelist.js)2
3 files changed, 7 insertions, 7 deletions
diff --git a/test/common/README.md b/test/common/README.md
index 5ce7473cb5..9bbc107dd8 100644
--- a/test/common/README.md
+++ b/test/common/README.md
@@ -40,12 +40,12 @@ The `benchmark` module is used by tests to run benchmarks.
The `common` module is used by tests for consistency across repeated
tasks.
-### `allowGlobals(...whitelist)`
+### `allowGlobals(...allowlist)`
-* `whitelist` [&lt;Array>][] Array of Globals
+* `allowlist` [&lt;Array>][] Array of Globals
* return [&lt;Array>][]
-Takes `whitelist` and concats that with predefined `knownGlobals`.
+Takes `allowlist` and concats that with predefined `knownGlobals`.
### `canCreateSymLink()`
@@ -601,7 +601,7 @@ If set, crypto tests are skipped.
### `NODE_TEST_KNOWN_GLOBALS`
A comma-separated list of variables names that are appended to the global
-variable whitelist. Alternatively, if `NODE_TEST_KNOWN_GLOBALS` is set to `'0'`,
+variable allowlist. Alternatively, if `NODE_TEST_KNOWN_GLOBALS` is set to `'0'`,
global leak detection is disabled.
## Fixtures Module
diff --git a/test/common/index.js b/test/common/index.js
index 0952f5de52..39caa1b6b6 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -276,8 +276,8 @@ if (global.gc) {
knownGlobals.push(global.gc);
}
-function allowGlobals(...whitelist) {
- knownGlobals = knownGlobals.concat(whitelist);
+function allowGlobals(...allowlist) {
+ knownGlobals = knownGlobals.concat(allowlist);
}
if (process.env.NODE_TEST_KNOWN_GLOBALS !== '0') {
diff --git a/test/parallel/test-process-binding-internalbinding-whitelist.js b/test/parallel/test-process-binding-internalbinding-allowlist.js
index 9768ef6674..10667b843c 100644
--- a/test/parallel/test-process-binding-internalbinding-whitelist.js
+++ b/test/parallel/test-process-binding-internalbinding-allowlist.js
@@ -4,7 +4,7 @@
const common = require('../common');
const assert = require('assert');
-// Assert that whitelisted internalBinding modules are accessible via
+// Assert that allowed internalBinding modules are accessible via
// process.binding().
assert(process.binding('async_wrap'));
assert(process.binding('buffer'));