Skip to content

Commit

Permalink
add Node.js 18 globals (#1032)
Browse files Browse the repository at this point in the history
The following globals are added in Node.js 18: Blob, BroadcastChannel,
fetch, FormData, Headers, Request, Response.
  • Loading branch information
BethGriggs authored Apr 2, 2022
1 parent f42d9a9 commit e526d62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/modules/leaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const internals = {
'MessageEvent',
'MessagePort',
'structuredClone',
'fetch',

// Non-Enumerable globals

Expand Down Expand Up @@ -89,6 +90,12 @@ const internals = {
'WeakRef',
'WeakSet',
'DOMException',
'Blob',
'BroadcastChannel',
'FormData',
'Headers',
'Request',
'Response',

// Sometime

Expand Down

0 comments on commit e526d62

Please sign in to comment.