Bugfix for document.doctype
(#85)
This commit is contained in:
parent
5132b5ea3a
commit
cfee59d119
2 changed files with 14 additions and 7 deletions
|
@ -14,9 +14,13 @@ const vm = new VM({
|
|||
atob: atob,
|
||||
setTimeout: (_a, _b) => {},
|
||||
setInterval: (_a, _b) => {},
|
||||
document: {
|
||||
getElementById: (_i) => {},
|
||||
doctype: {},
|
||||
},
|
||||
},
|
||||
})
|
||||
vm.run('var window = global; var document = {}')
|
||||
vm.run('var window = global')
|
||||
|
||||
const listener = (req, res) => {
|
||||
|
||||
|
|
Reference in a new issue