qxVm/qxVm_sanbox/env/DOM/HTMLDocument.js
Iceland-monsoon 679f61fa08 更新
2023-07-26 15:34:01 +08:00

23 lines
845 B
JavaScript

HTMLDocument = function HTMLDocument(createObj_key) {//构造函数
if (createObj_key !== lwVm.memory.$createObj_key) {
throw new TypeError("Illegal constructor");
}
lwVm.memory.private_data.set(this, {})
}; lwVm.safefunction(HTMLDocument);
; (function () {
const $safe_get_attribute = [];
const $safe_set_attribute = [];
const $safe_func_attribute = [];
HTMLDocument.prototype = {};
lwVm.rename(HTMLDocument.prototype, "HTMLDocument");
lwVm.safeDescriptor_addConstructor(HTMLDocument);
lwVm.safe_Objattribute(HTMLDocument, $safe_get_attribute, $safe_set_attribute, $safe_func_attribute);
Object.setPrototypeOf(HTMLDocument.prototype, Document.prototype); // 指定属性原型的原型链
Object.setPrototypeOf(HTMLDocument, Document); // 指定属性的原型链
})();
// debugger;