| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
CI is green and seems uncontroversial. There's no reason for this to wait the full 48 hours. Please 👍🏻 to fast-track |
Sorry, something went wrong.
PR-URL: nodejs#38211 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#38211 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
This is useful to avoid throwing exception if globalThis is being overwritten in userland:
I'm using no-restricted-globals instead of node-core/prefer-primordials to generate better error messages.
lib/internal/process/execution.js 58:22 error Use `const { globalThisModule } = primordials;` instead of the global node-core/prefer-primordials 75:3 error Use `const { globalThis__filename } = primordials;` instead of the global node-core/prefer-primordials 92:5 error Use `const { globalThisModule } = primordials;` instead of the global node-core/prefer-primordialslib/internal/process/execution.js 58:22 error Unexpected use of 'globalThis'. Use `const { globalThis } = primordials;` instead of the global no-restricted-globals 75:3 error Unexpected use of 'globalThis'. Use `const { globalThis } = primordials;` instead of the global no-restricted-globals 92:5 error Unexpected use of 'globalThis'. Use `const { globalThis } = primordials;` instead of the global no-restricted-globals