Quellcode durchsuchen

use native implementations of Set and Map (fix #607)

Gildas vor 5 Jahren
Ursprung
Commit
b280a5119a
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      lib/single-file/single-file-core.js

+ 5 - 0
lib/single-file/single-file-core.js

@@ -21,10 +21,15 @@
  *   Source.
  */
 
+/* global window */
+
 this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 
 	const DEBUG = false;
 
+	const Set = window.Set;
+	const Map = window.Map;
+
 	let util, cssTree;
 
 	function getClass(...args) {