xuxiaobo-bobo a27aa6f31b '0605'
2023-06-05 23:25:43 +08:00

12 lines
1.7 KiB
JavaScript

// CacheStorage对象
bodavm.memory.globalobj['CacheStorage'] = function CacheStorage(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['CacheStorage'], "CacheStorage");
bodavm.toolsFunc.defineProperty('CacheStorage', "delete", {configurable:true, enumerable:true, writable:true, value:function (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "delete", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('CacheStorage', "has", {configurable:true, enumerable:true, writable:true, value:function has (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "has", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('CacheStorage', "keys", {configurable:true, enumerable:true, writable:true, value:function keys (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "keys", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('CacheStorage', "match", {configurable:true, enumerable:true, writable:true, value:function match (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "match", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('CacheStorage', "open", {configurable:true, enumerable:true, writable:true, value:function open (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['CacheStorage'].prototype, "CacheStorage", "open", arguments)}},'prototype');
bodavm.memory.globalobj[ 'caches'] = {}
bodavm.memory.globalobj[ 'caches'].__proto__=bodavm.memory.globalobj['CacheStorage'].prototype;