xuxiaobo-bobo 28c0fc3999 '0218'
2023-02-18 03:07:48 +08:00

13 lines
1.5 KiB
JavaScript

// IDBFactory对象
bodavm.memory.globalobj['IDBFactory'] = function IDBFactory(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['IDBFactory'], "IDBFactory");
bodavm.toolsFunc.defineProperty('IDBFactory', "cmp", {configurable:true, enumerable:true, writable:true, value:function cmp (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBFactory'].prototype, "IDBFactory", "cmp", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('IDBFactory', "databases", {configurable:true, enumerable:true, writable:true, value:function databases (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBFactory'].prototype, "IDBFactory", "databases", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('IDBFactory', "deleteDatabase", {configurable:true, enumerable:true, writable:true, value:function deleteDatabase (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBFactory'].prototype, "IDBFactory", "deleteDatabase", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('IDBFactory', "open", {configurable:true, enumerable:true, writable:true, value:function open (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['IDBFactory'].prototype, "IDBFactory", "open", arguments)}},'prototype');
// indexedDB对象
bodavm.memory.globalobj[ 'indexedDB'] = {}
bodavm.memory.globalobj[ 'indexedDB'].__proto__=bodavm.memory.globalobj['IDBFactory'].prototype;