package: update browser shim
This commit is contained in:
parent
87420555cf
commit
6d76411b12
1 changed files with 13 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue