Browse Source

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

Nicolas Cannasse 11 years ago
parent
commit
ee3a073b10
1 changed files with 2 additions and 0 deletions
  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