From ef082af2a996dacbabe4751fea38abed15f82438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E5=A7=8B?= <69897076+ylw00@users.noreply.github.com> Date: Wed, 13 Sep 2023 15:23:51 +0800 Subject: [PATCH] Update StorageManager.js --- qxVm_sanbox/env/EVENTTARGET/StorageManager.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qxVm_sanbox/env/EVENTTARGET/StorageManager.js b/qxVm_sanbox/env/EVENTTARGET/StorageManager.js index 2cfba4e..7e89b14 100644 --- a/qxVm_sanbox/env/EVENTTARGET/StorageManager.js +++ b/qxVm_sanbox/env/EVENTTARGET/StorageManager.js @@ -13,7 +13,15 @@ StorageManager = function StorageManager(createObj_key) { StorageManager.prototype = { estimate() { if (!StorageManager.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); }; - let result = undefined; + let result = new Promise((resolve, reject) => { + setTimeout(() => { + resolve({ + quota: 193274155008, + usage: 0, + usageDetails: {}, + }) + }, 0) + }); if (lwVm.config.logOpen=== true) lwVm.logAdd('Func', 'StorageManager', 'estimate', arguments, result); return result; },