浏览代码

const is actually a keyword.

Bruno Garcia 12 年之前
父节点
当前提交
e5ecf279be
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      genjs.ml

+ 2 - 2
genjs.ml

@@ -75,8 +75,8 @@ let kwds =
 	let h = Hashtbl.create 0 in
 	List.iter (fun s -> Hashtbl.add h s ()) [
 		(* JS reserved words: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Reserved_Words *)
-		"break"; "case"; "catch"; "class"; "continue"; "debugger"; "default"; "delete"; "do";
-		"else"; "enum"; "export"; "extends"; "finally"; "for"; "function"; "if"; "implements";
+		"break"; "case"; "catch"; "class"; "const"; "continue"; "debugger"; "default"; "delete";
+		"do"; "else"; "enum"; "export"; "extends"; "finally"; "for"; "function"; "if"; "implements";
 		"import"; "in"; "instanceof"; "interface"; "let"; "new"; "package"; "private"; "protected";
 		"public"; "return"; "static"; "super"; "switch"; "this"; "throw"; "try"; "typeof"; "var";
 		"void"; "while"; "with"; "yield";