From 0817840f775032169ddd70c85ac059f18ffcc81c Mon Sep 17 00:00:00 2001 From: Michaƫl Zasso Date: Sun, 31 Mar 2019 13:30:12 +0200 Subject: lib: force using primordials for JSON, Math and Reflect Use the "no-restricted-globals" ESLint rule to lint for it. PR-URL: https://github.com/nodejs/node/pull/27027 Reviewed-By: Anna Henningsen Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Gus Caplan Reviewed-By: Luigi Pinca --- lib/fs.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/fs.js') diff --git a/lib/fs.js b/lib/fs.js index b27b7f8916..fbdddb2f8c 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -24,6 +24,8 @@ 'use strict'; +const { Math, Reflect } = primordials; + const { fs: constants } = internalBinding('constants'); const { S_IFIFO, -- cgit v1.2.3