|
@@ -285,7 +285,7 @@ let create_instance_prototype ctx c =
|
|
|
|
|
|
let get_object_prototype ctx l =
|
|
|
let l = List.sort (fun (i1,_) (i2,_) -> if i1 = i2 then 0 else if i1 < i2 then -1 else 1) l in
|
|
|
- let sfields = String.concat "," (List.map (fun (i,_) -> rev_hash i) l) in
|
|
|
+ let sfields = String.concat "," (List.map (fun (i,_) -> (Printf.sprintf ":%s" (rev_hash i))) l) in
|
|
|
let name = hash (Printf.sprintf "eval.object.Object[%s]" sfields) in
|
|
|
try
|
|
|
IntMap.find name ctx.instance_prototypes,l
|