Skip to content

Commit

Permalink
Support new globals for node.js 18 and 20
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Oct 8, 2023
1 parent c1a70b4 commit a821505
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions metavm.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,37 @@ const MODULE_TYPE = {

const DEFAULT = {
AbortController,
AbortSignal,
Event,
EventTarget,
MessageChannel,
MessageEvent,
MessagePort,
Buffer,
Blob,
FormData,
Headers,
Response,
Request,
ByteLengthQueuingStrategy,
URL,
URLSearchParams,
TextDecoder,
TextEncoder,
TextDecoderStream,
TextEncoderStream,
WebAssembly,
queueMicrotask,
setTimeout,
setImmediate,
setInterval,
clearTimeout,
clearImmediate,
clearInterval,
BroadcastChannel,
CompressionStream,
DecompressionStream,
CountQueuingStrategy,
};

const NODE = { global, console, process };
Expand Down

0 comments on commit a821505

Please sign in to comment.