catvm/CatVm2/browser/HTMLElements/HTMLDivElement.js
Big1moster d843fcb236 dsf
2023-02-06 11:36:48 +08:00

28 lines
627 B
JavaScript

var HTMLDivElement = function HTMLDivElement() { // 构造函数
throw new TypeError("Illegal constructor");
};
catvm.safefunction(HTMLDivElement);
Object.defineProperties(HTMLDivElement.prototype, {
[Symbol.toStringTag]: {
value: "HTMLDivElement",
configurable: true
}
});
////////// 浏览器代码自动生成部分
////////
// 用户创建div
catvm.memory.htmlelements["div"] = function () {
var div = new (function () {});
//////////////////////////////////////////
div.align = "";
/////////////////////////
div.__proto__ = HTMLDivElement.prototype;
return div;
}