lib: add globalThis to primordials

PR-URL: https://github.com/nodejs/node/pull/38211
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel
2021-04-12 16:02:33 +02:00
parent 802171057f
commit 23d2c54bab
6 changed files with 23 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
'use strict';
const {
globalThis,
} = primordials;
process.emitWarning(
'These APIs are for internal testing only. Do not use them.',
'internal/test/binding');