Pārlūkot izejas kodu

add "final" to the list of keywords (report error with closure compiler, ES6 keyword?)

Nicolas Cannasse 11 gadi atpakaļ
vecāks
revīzija
ee3a073b10
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      genjs.ml

+ 2 - 0
genjs.ml

@@ -95,6 +95,8 @@ let kwds =
 		"import"; "in"; "instanceof"; "interface"; "let"; "new"; "package"; "private"; "protected";
 		"public"; "return"; "static"; "super"; "switch"; "this"; "throw"; "try"; "typeof"; "var";
 		"void"; "while"; "with"; "yield";
+		(* reserved by closure compiler *)
+		"final"
 	];
 	h