2
0
Эх сурвалжийг харах

[js] don't prefix enum constructor access with $ (closes #2418)

Dan Korostelev 11 жил өмнө
parent
commit
1a449849ee
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      genjs.ml

+ 1 - 1
genjs.ml

@@ -476,7 +476,7 @@ and gen_expr ctx e =
 	| TField (x,f) ->
 	| TField (x,f) ->
 		gen_value ctx x;
 		gen_value ctx x;
 		let name = field_name f in
 		let name = field_name f in
-		spr ctx (match f with FStatic _ | FEnum _ -> static_field name | FInstance _ | FAnon _ | FDynamic _ | FClosure _ -> field name)
+		spr ctx (match f with FStatic _ -> static_field name | FEnum _ | FInstance _ | FAnon _ | FDynamic _ | FClosure _ -> field name)
 	| TTypeExpr t ->
 	| TTypeExpr t ->
 		spr ctx (ctx.type_accessor t)
 		spr ctx (ctx.type_accessor t)
 	| TParenthesis e ->
 	| TParenthesis e ->