Another token parser bugfix

This commit is contained in:
DarkCat09 2023-07-27 10:57:26 +04:00
parent 26805891be
commit c6fa1d6734
2 changed files with 13 additions and 5 deletions

View file

@ -7,15 +7,20 @@ const args = process.argv.slice(2)
const port = args[0] || 8000
const host = args[1] || 'localhost'
const stubFunc = (_i) => {}
const vm = new VM({
timeout: 2000,
allowAsync: false,
sandbox: {
atob: atob,
setTimeout: (_a, _b) => {},
setInterval: (_a, _b) => {},
setTimeout: stubFunc,
setInterval: stubFunc,
document: {
getElementById: (_i) => {},
getElementById: stubFunc,
prepend: stubFunc,
append: stubFunc,
appendChild: stubFunc,
doctype: {},
currentScript: {},
},