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>
This commit is contained in:
Michaël Zasso authored and ZYSzys committed 2019-04-03 21:36:08 +08:00
1 parent 8a6dcd040f
commit 0817840f77
43 files changed
+83 -3

No files matched your search

+2
View File
@@ -21,6 +21,8 @@
'use strict';
const { Math } = primordials;
const {
byteLengthUtf8,
copy: _copy,