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/internal/child_process.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/internal/child_process.js') diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js index 840a1f16e0..86736b1bd8 100644 --- a/lib/internal/child_process.js +++ b/lib/internal/child_process.js @@ -1,5 +1,7 @@ 'use strict'; +const { JSON } = primordials; + const { errnoException, codes: { -- cgit v1.2.3