mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-23 03:09:21 +08:00
23 lines
495 B
JavaScript
23 lines
495 B
JavaScript
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
|
|
} |