瀏覽代碼

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

Nicolas Cannasse 11 年之前
父節點
當前提交
ee3a073b10
共有 1 個文件被更改,包括 2 次插入0 次删除
  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