package: update browser shim

This commit is contained in:
jean-emmanuel 2019-04-07 19:46:52 +02:00
parent 120a926dd2
commit 633cb4ae68

View file

@ -10,7 +10,14 @@ document = {
appendChild: ()=>{},
lastChild: {},
toString: ()=>' ',
removeChild: ()=>{}
removeChild: ()=>{},
contentWindow: {
document: {
open: ()=>{},
close: ()=>{},
write: ()=>{},
}
}
}),
createTextNode: x=>({
nodeValue: '',
@ -37,7 +44,11 @@ document = {
appendChild: ()=>{},
addEventListener: ()=>{}
},
location: {}
location: {},
documentElement: {
appendChild: ()=>{},
removeChild: ()=>{}
}
}
window = {