Forráskód Böngészése

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

Gildas 5 éve
szülő
commit
b280a5119a
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      lib/single-file/single-file-core.js

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

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