Skip to content

Commit

Permalink
Fix guest errors thrown through host boundaries might be unwrapped tw…
Browse files Browse the repository at this point in the history
…ice.
  • Loading branch information
chumer committed Aug 10, 2018
1 parent f81525a commit 5195e9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ private Object doInvoke(SingleMethod method, Object obj, Object[] arguments, Pol
try {
ret = method.invoke(obj, arguments);
} catch (Throwable e) {
throw HostInteropReflect.rethrow(PolyglotImpl.wrapHostException(languageContext, e));
throw HostInteropReflect.rethrow(e);
}
return toGuest.apply(languageContext, ret);
}
Expand Down

0 comments on commit 5195e9b

Please sign in to comment.