mirror of
https://github.com/Big1moster/catvm.git
synced 2025-04-12 11:37:13 +08:00
28 lines
627 B
JavaScript
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;
|
|
}
|
|
|