소스 검색

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

Gildas 5 년 전
부모
커밋
b280a5119a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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) {