Browse Source

[exceptions] fix @:wrappedException type

closes #11140
Simon Krajewski 2 years ago
parent
commit
513d06aced
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/filters/exceptions.ml

+ 1 - 1
src/filters/exceptions.ml

@@ -200,7 +200,7 @@ let throw_native ctx e_thrown t p =
 				if is_dynamic ctx.base_throw_type then thrown
 				if is_dynamic ctx.base_throw_type then thrown
 				else mk_cast thrown ctx.base_throw_type p
 				else mk_cast thrown ctx.base_throw_type p
 			in
 			in
-			mk (TMeta ((Meta.WrappedException,[],p),wrapped)) thrown.etype p
+			mk (TMeta ((Meta.WrappedException,[],p),wrapped)) wrapped.etype p
 		else
 		else
 			e_thrown
 			e_thrown
 	in
 	in