mirror of
https://github.com/ylw00/qxVm.git
synced 2025-04-12 12:06:58 +08:00
99 lines
6.1 KiB
JavaScript
99 lines
6.1 KiB
JavaScript
XMLHttpRequestEventTarget = function XMLHttpRequestEventTarget(createObj_key) {//构造函数
|
|
if (createObj_key !== lwVm.memory.$createObj_key) {
|
|
throw new TypeError("Illegal constructor");
|
|
}
|
|
lwVm.memory.private_data.set(this, {})
|
|
}; lwVm.safefunction(XMLHttpRequestEventTarget);
|
|
|
|
; (function () {
|
|
const $safe_get_attribute = ['onabort', 'onerror', 'onload', 'onloadend', 'onloadstart', 'onprogress', 'ontimeout'];
|
|
const $safe_set_attribute = ['onabort', 'onerror', 'onload', 'onloadend', 'onloadstart', 'onprogress', 'ontimeout'];
|
|
const $safe_func_attribute = [];
|
|
|
|
XMLHttpRequestEventTarget.prototype = {
|
|
get onabort() {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = lwVm.abs(lwVm.memory.private_data.get(this).onabort, null);;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'XMLHttpRequestEventTarget', 'onabort', arguments, result);
|
|
return result;
|
|
},
|
|
set onabort(value) {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Set', 'XMLHttpRequestEventTarget', 'onabort', arguments);
|
|
lwVm.memory.private_data.get(this).onabort = value + "";
|
|
},
|
|
get onerror() {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = lwVm.abs(lwVm.memory.private_data.get(this).onerror, null);;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'XMLHttpRequestEventTarget', 'onerror', arguments, result);
|
|
return result;
|
|
},
|
|
set onerror(value) {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Set', 'XMLHttpRequestEventTarget', 'onerror', arguments);
|
|
lwVm.memory.private_data.get(this).onerror = value + "";
|
|
},
|
|
get onload() {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = lwVm.abs(lwVm.memory.private_data.get(this).onload, null);;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'XMLHttpRequestEventTarget', 'onload', arguments, result);
|
|
return result;
|
|
},
|
|
set onload(value) {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Set', 'XMLHttpRequestEventTarget', 'onload', arguments);
|
|
lwVm.memory.private_data.get(this).onload = value + "";
|
|
},
|
|
get onloadend() {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = lwVm.abs(lwVm.memory.private_data.get(this).onloadend, null);;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'XMLHttpRequestEventTarget', 'onloadend', arguments, result);
|
|
return result;
|
|
},
|
|
set onloadend(value) {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Set', 'XMLHttpRequestEventTarget', 'onloadend', arguments);
|
|
lwVm.memory.private_data.get(this).onloadend = value + "";
|
|
},
|
|
get onloadstart() {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = lwVm.abs(lwVm.memory.private_data.get(this).onloadstart, null);;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'XMLHttpRequestEventTarget', 'onloadstart', arguments, result);
|
|
return result;
|
|
},
|
|
set onloadstart(value) {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Set', 'XMLHttpRequestEventTarget', 'onloadstart', arguments);
|
|
lwVm.memory.private_data.get(this).onloadstart = value + "";
|
|
},
|
|
get onprogress() {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = lwVm.abs(lwVm.memory.private_data.get(this).onprogress, null);;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'XMLHttpRequestEventTarget', 'onprogress', arguments, result);
|
|
return result;
|
|
},
|
|
set onprogress(value) {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Set', 'XMLHttpRequestEventTarget', 'onprogress', arguments);
|
|
lwVm.memory.private_data.get(this).onprogress = value + "";
|
|
},
|
|
get ontimeout() {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = lwVm.abs(lwVm.memory.private_data.get(this).ontimeout, null);;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'XMLHttpRequestEventTarget', 'ontimeout', arguments, result);
|
|
return result;
|
|
},
|
|
set ontimeout(value) {
|
|
if (!XMLHttpRequestEventTarget.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
lwVm.memory.private_data.get(this).ontimeout = value + "";
|
|
}
|
|
}
|
|
|
|
lwVm.rename(XMLHttpRequestEventTarget.prototype, "XMLHttpRequestEventTarget");
|
|
lwVm.safeDescriptor_addConstructor(XMLHttpRequestEventTarget);
|
|
lwVm.safe_Objattribute(XMLHttpRequestEventTarget, $safe_get_attribute, $safe_set_attribute, $safe_func_attribute);
|
|
|
|
Object.setPrototypeOf(XMLHttpRequestEventTarget.prototype, EventTarget.prototype);
|
|
Object.setPrototypeOf(XMLHttpRequestEventTarget, EventTarget);
|
|
|
|
})(); |