closes #11175
@@ -179,7 +179,7 @@ let throw_native ctx e_thrown t p =
else
e_thrown
in
- mk (TThrow e_native) t p
+ e_native
let set_needs_exception_stack v =
if not (Meta.has Meta.NeedsExceptionStack v.v_meta) then
@@ -0,0 +1,11 @@
+package issues;
+
+class Issue11175 {
+ @:js('
+ throw haxe_Exception.thrown("foo");
+ ')
+ @:analyzer(ignore)
+ static function test() {
+ throw "foo";
+ }
+}