boda_jsEnv/env_xbb_lastest_bo/env/IDBOpenDBRequest.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

43 lines
1.6 KiB
JavaScript

// IDBOpenDBRequest对象
IDBOpenDBRequest = function IDBOpenDBRequest() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof IDBOpenDBRequest)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('IDBOpenDBRequest 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(IDBOpenDBRequest, "IDBOpenDBRequest");
IDBOpenDBRequest.prototype.__proto__ = IDBRequest.prototype;
IDBOpenDBRequest.__proto__ = IDBRequest;
bodavm.toolsFunc.defineProperty(IDBOpenDBRequest.prototype, "onblocked", {
configurable: true,
enumerable: true,
get: function onblocked() {
return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onblocked_get", arguments);
},
set: function onblocked() {
return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onblocked_set", arguments);
}
});
bodavm.toolsFunc.defineProperty(IDBOpenDBRequest.prototype, "onupgradeneeded", {
configurable: true,
enumerable: true,
get: function onupgradeneeded() {
return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onupgradeneeded_get", arguments);
},
set: function onupgradeneeded() {
return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onupgradeneeded_set", arguments);
}
});