5 ms·
I did something similar but without needing web workers, iframes, or any type of vm. I used Proxy to intercept Function and hide all scopes outside of the closu
by green_man_lives 4y ago
I did something similar but without needing web workers, iframes, or any type of vm. I used Proxy to intercept Function and hide all scopes outside of the closure. I don't know if it's 100% safe, but it's just for a small game demo, letting users control in-game units in the browser.
https://ai-arena.com/ https://ai-arena.com/
If anyone knows how to break my game, please let me know!