From 9574eaf7ecb6c69c4db2af63802c7f2e840923f6 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 29 Jul 2022 17:50:44 +0200 Subject: [PATCH] Expose `URL` constructor to sandboxes --- packages/plugos/environments/node_worker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugos/environments/node_worker.ts b/packages/plugos/environments/node_worker.ts index fc60d80..1de9666 100644 --- a/packages/plugos/environments/node_worker.ts +++ b/packages/plugos/environments/node_worker.ts @@ -38,6 +38,7 @@ let vm = new VM({ setTimeout, clearTimeout, setInterval, + URL, clearInterval, fetch: require(`${nodeModulesPath}/node-fetch`), WebSocket: require(`${nodeModulesPath}/ws`),