Browse Source

[lua] use _hx_e for initializing prototype

Justin Donaldson 5 years ago
parent
commit
e39d50457c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/generators/genlua.ml

+ 1 - 1
src/generators/genlua.ml

@@ -1674,7 +1674,7 @@ let generate_class ctx c =
     List.iter (gen_class_static_field ctx c) c.cl_ordered_statics;
 
     if (has_prototype ctx c) then begin
-        println ctx "%s.prototype = _hx_a();" p;
+        println ctx "%s.prototype = _hx_e();" p;
         let count = ref 0 in
         List.iter (fun f -> if can_gen_class_field ctx f then (gen_class_field ctx c f) ) c.cl_ordered_fields;
         if (has_class ctx c) then begin