Explorar el Código

[js] support unqualified static field access for @:native("") classes (see #6448)

Dan Korostelev hace 8 años
padre
commit
6d896687a2
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/generators/genjs.ml

+ 2 - 0
src/generators/genjs.ml

@@ -498,6 +498,8 @@ and gen_expr ctx e =
 	| TEnumParameter (x,_,i) ->
 		gen_value ctx x;
 		print ctx "[%i]" (i + 2)
+	| TField (_, FStatic ({cl_path = [],""},f)) ->
+		spr ctx f.cf_name;
 	| TField (x, (FInstance(_,_,f) | FStatic(_,f) | FAnon(f))) when Meta.has Meta.SelfCall f.cf_meta ->
 		gen_value ctx x;
 	| TField (x,f) ->