This commit is contained in:
Dmitry Vasilev
2023-05-18 23:15:10 +03:00
parent db3166154d
commit 932baf3eed
6 changed files with 35 additions and 65 deletions

View File

@@ -216,13 +216,6 @@ const io_patch = (path, use_context = false) => {
}
export const apply_io_patches = () => {
// TODO remove, only for dev
// TODO test open_run_window
if(cxt.window.__io_patched) {
throw new Error('illegal state')
}
cxt.window.__io_patched = true
io_patch(['Math', 'random'])
io_patch(['setTimeout'])