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

31 lines
1.2 KiB
JavaScript

Geolocation = function Geolocation(createObj_key) {
if (createObj_key !== qxVm.memory.$createObj_key) {
throw new TypeError("Illegal constructor");
}
qxVm.memory.private_data.set(this, {})
}; qxVm.safefunction(Geolocation);
; (function () {
const $safe_get_attribute = [];
const $safe_set_attribute = [];
const $safe_func_attribute = ['clearWatch', 'getCurrentPosition', 'watchPosition'];
Geolocation.prototype = {
clearWatch() {
debugger;
if (!Geolocation.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
},
getCurrentPosition() {
debugger;
if (!Geolocation.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
},
watchPosition() {
debugger;
if (!Geolocation.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
},
}
qxVm.rename(Geolocation.prototype, "Geolocation");
qxVm.safeDescriptor_addConstructor(Geolocation);
qxVm.safe_Objattribute(Geolocation, $safe_get_attribute, $safe_set_attribute, $safe_func_attribute);
})();