diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2019-03-31 13:30:12 +0200 |
---|---|---|
committer | ZYSzys <zyszys98@gmail.com> | 2019-04-03 21:36:08 +0800 |
commit | 0817840f775032169ddd70c85ac059f18ffcc81c (patch) | |
tree | c34b2577637895064116a86b8a1d095d2d26e1a3 /lib/domain.js | |
parent | 8a6dcd040f35b023f0cc0208c4bc553fcc7e6a4d (diff) | |
download | node-new-0817840f775032169ddd70c85ac059f18ffcc81c.tar.gz |
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 <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib/domain.js')
-rw-r--r-- | lib/domain.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/domain.js b/lib/domain.js index 27d72eb20c..608d5daceb 100644 --- a/lib/domain.js +++ b/lib/domain.js @@ -26,6 +26,8 @@ // No new pull requests targeting this module will be accepted // unless they address existing, critical bugs. +const { Reflect } = primordials; + const util = require('util'); const EventEmitter = require('events'); const { |