Selaa lähdekoodia

use Map#size to get the size of the Map

Gildas 7 vuotta sitten
vanhempi
sitoutus
b338a37a5d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -286,7 +286,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		}
 
 		getMaxResources() {
-			return Array.from(this.requests.keys()).length;
+			return this.requests.size;
 		}
 
 		async run(onloadListener, options) {