We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3326fe commit d08373aCopy full SHA for d08373a
jscomp/runtime/caml_oo.ml
@@ -46,8 +46,8 @@ let caml_methods_cache =
46
Caml_array_extern.make 1000 0
47
48
(* refer to {!CamlinternalOO.create_obj_opt}*)
49
-external get_methods : obj -> closure array =
50
- "%field0"
+
51
52
(* see #251
53
{[
@@ -71,7 +71,7 @@ let caml_get_public_method
71
(obj : obj)
72
(tag : int) (cacheid : int) : closure =
73
let module Array = Caml_array_extern in
74
- let meths = get_methods obj in (* the first field of object is mehods *)
+ let meths : closure array = Obj.obj (Obj.field (Obj.repr obj) 0) in (* the first field of object is mehods *)
75
let offs = caml_methods_cache.(cacheid) in
76
if (Obj.magic meths.(offs) : int) = tag then meths.(offs - 1)
77
else
0 commit comments