2023-08-11 21:04:56 +08:00

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
}