Skip to content

Commit

Permalink
[lua] use _hx_e for initializing prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonaldson committed Feb 27, 2020
1 parent 8d5c30d commit e39d504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/genlua.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e39d504

Please sign in to comment.