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