diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2019-03-31 14:30:12 +0300 |
---|---|---|
committer | ZYSzys <zyszys98@gmail.com> | 2019-04-03 16:36:08 +0300 |
commit | 0817840f775032169ddd70c85ac059f18ffcc81c (patch) | |
tree | c34b2577637895064116a86b8a1d095d2d26e1a3 /lib/internal/buffer.js | |
parent | 8a6dcd040f35b023f0cc0208c4bc553fcc7e6a4d (diff) |
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/internal/buffer.js')
-rw-r--r-- | lib/internal/buffer.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/internal/buffer.js b/lib/internal/buffer.js index 56b73f5489e..64c026002cc 100644 --- a/lib/internal/buffer.js +++ b/lib/internal/buffer.js @@ -1,5 +1,7 @@ 'use strict'; +const { Math } = primordials; + const { ERR_BUFFER_OUT_OF_BOUNDS, ERR_INVALID_ARG_TYPE, |