qxVm/qxVm_sanbox/env/DOM/HTMLDocument.js
2023-04-20 21:14:25 +08:00

23 lines
845 B
JavaScript

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