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/zlib.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/zlib.js') diff --git a/lib/zlib.js b/lib/zlib.js index 2d73b0e552..1d19210d70 100644 --- a/lib/zlib.js +++ b/lib/zlib.js @@ -21,6 +21,8 @@ 'use strict'; +const { Math } = primordials; + const { codes: { ERR_BROTLI_INVALID_PARAM, -- cgit v1.2.3