mirror of
https://github.com/ylw00/qxVm.git
synced 2025-04-22 23:49:19 +08:00
23 lines
845 B
JavaScript
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;
|