summaryrefslogtreecommitdiff
path: root/lib/crypto.js
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-04-04 11:36:41 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-04-06 12:04:36 +0800
commitde230555369087282213d337ecc1c315fbb74230 (patch)
tree19e10179deff9ba47dac546af566e09a4a3f9a66 /lib/crypto.js
parent864860e9f3d4eed0b0b81af55197d7e525ea6306 (diff)
downloadandroid-node-v8-de230555369087282213d337ecc1c315fbb74230.tar.gz
android-node-v8-de230555369087282213d337ecc1c315fbb74230.tar.bz2
android-node-v8-de230555369087282213d337ecc1c315fbb74230.zip
lib: remove `env: node` in eslint config for lib files
This patch removes the redundant `require-globals` custom eslint rule by removing `env: node` in the eslint config and whitelist the globals that can be accessed in native modules instead of black listing them. This makes sense for our `lib/` files because here we are creating the Node.js environment instead of running in a normal user land Node.js environment. PR-URL: https://github.com/nodejs/node/pull/27082 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/crypto.js')
-rw-r--r--lib/crypto.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index e80c7a8327..44d4800624 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -145,7 +145,7 @@ function createVerify(algorithm, options) {
return new Verify(algorithm, options);
}
-module.exports = exports = {
+module.exports = {
// Methods
createCipheriv,
createDecipheriv,
@@ -218,7 +218,7 @@ function getFipsForced() {
return 1;
}
-Object.defineProperties(exports, {
+Object.defineProperties(module.exports, {
createCipher: {
enumerable: false,
value: deprecate(createCipher,