1
0

Expose URL constructor to sandboxes

This commit is contained in:
Zef Hemel 2022-07-29 17:50:44 +02:00
parent a01578a7ff
commit 9574eaf7ec

View File

@ -38,6 +38,7 @@ let vm = new VM({
setTimeout, setTimeout,
clearTimeout, clearTimeout,
setInterval, setInterval,
URL,
clearInterval, clearInterval,
fetch: require(`${nodeModulesPath}/node-fetch`), fetch: require(`${nodeModulesPath}/node-fetch`),
WebSocket: require(`${nodeModulesPath}/ws`), WebSocket: require(`${nodeModulesPath}/ws`),