@@ -308,7 +308,7 @@ let rec step (c : config) : config =
308
308
| ThrowRef , Ref (NullRef _ ) :: vs ->
309
309
vs, [Trapping " null exception reference" @@ e.at]
310
310
311
- | ThrowRef , Ref (ExnRef (t , args )) :: vs ->
311
+ | ThrowRef , Ref (Exn. ( ExnRef (Exn ( t , args )) )) :: vs ->
312
312
vs, [Throwing (t, args) @@ e.at]
313
313
314
314
| TryTable (bt , cs , es' ), vs ->
@@ -1055,15 +1055,15 @@ let rec step (c : config) : config =
1055
1055
1056
1056
| Handler (n , {it = CatchRef (x1 , x2 ); _} :: cs , (vs' , {it = Throwing (a , vs0 ); at} :: es' )), vs ->
1057
1057
if a == tag c.frame.inst x1 then
1058
- Ref (ExnRef (a, vs0)) :: vs0 @ vs, [Plain (Br x2) @@ e.at]
1058
+ Ref Exn. (ExnRef (Exn ( a, vs0) )) :: vs0 @ vs, [Plain (Br x2) @@ e.at]
1059
1059
else
1060
1060
vs, [Handler (n, cs, (vs', {it = Throwing (a, vs0); at} :: es')) @@ e.at]
1061
1061
1062
1062
| Handler (n , {it = CatchAll x ; _} :: cs , (vs' , {it = Throwing (a , vs0 ); at} :: es' )), vs ->
1063
1063
vs, [Plain (Br x) @@ e.at]
1064
1064
1065
1065
| Handler (n , {it = CatchAllRef x ; _} :: cs , (vs' , {it = Throwing (a , vs0 ); at} :: es' )), vs ->
1066
- Ref (ExnRef (a, vs0)) :: vs, [Plain (Br x) @@ e.at]
1066
+ Ref Exn. (ExnRef (Exn ( a, vs0) )) :: vs, [Plain (Br x) @@ e.at]
1067
1067
1068
1068
| Handler (n , [] , (vs' , {it = Throwing (a , vs0 ); at} :: es' )), vs ->
1069
1069
vs, [Throwing (a, vs0) @@ at]
0 commit comments