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/assert | |
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/assert')
-rw-r--r-- | lib/internal/assert/assertion_error.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/internal/assert/assertion_error.js b/lib/internal/assert/assertion_error.js index 18c6e8cf99e..5cefbf568fd 100644 --- a/lib/internal/assert/assertion_error.js +++ b/lib/internal/assert/assertion_error.js @@ -1,5 +1,7 @@ 'use strict'; +const { Math } = primordials; + const { inspect } = require('internal/util/inspect'); const { codes: { ERR_INVALID_ARG_TYPE |