From a82150553914d2cd59d7df6314d824eef24577ab Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Mon, 9 Oct 2023 01:37:18 +0300 Subject: [PATCH] Support new globals for node.js 18 and 20 --- metavm.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/metavm.js b/metavm.js index cacbea6..27ee5a1 100644 --- a/metavm.js +++ b/metavm.js @@ -23,16 +23,26 @@ 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, @@ -40,6 +50,10 @@ const DEFAULT = { clearTimeout, clearImmediate, clearInterval, + BroadcastChannel, + CompressionStream, + DecompressionStream, + CountQueuingStrategy, }; const NODE = { global, console, process };