mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 21:55:07 +08:00
zy-补环境框架-实现-window补环境
This commit is contained in:
parent
cfed78a606
commit
7a25f17ecb
@ -0,0 +1,23 @@
|
|||||||
|
const HtmlDivElement =function HtmlDivElement()
|
||||||
|
{
|
||||||
|
throw new TypeError('Illegal constructor')
|
||||||
|
}
|
||||||
|
catvm.safefunction(HtmlDivElement);
|
||||||
|
|
||||||
|
Object.defineProperties(HtmlDivElement.prototype,{
|
||||||
|
[Symbol.toStringTag]:{
|
||||||
|
value:'HtmlDivElement',
|
||||||
|
configurable:true,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
//htmlDivElement = catvm.proxy(htmlDivElement)
|
||||||
|
|
||||||
|
catvm.memory.htmlElements['div'] = function(){
|
||||||
|
const div = new (function(){})
|
||||||
|
|
||||||
|
div.align = ''
|
||||||
|
|
||||||
|
div.__proto__ = HtmlDivElement.prototype
|
||||||
|
return div
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user