Skip to content
Snippets Groups Projects
Commit 08947aa2 authored by stepan's avatar stepan
Browse files

Add transferToInterpreter()

parent 1ffb5fce
No related branches found
No related tags found
No related merge requests found
43
44
......@@ -43,6 +43,7 @@ import java.net.MalformedURLException;
import com.oracle.truffle.api.CallTarget;
import com.oracle.truffle.api.CompilerAsserts;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.Truffle;
import com.oracle.truffle.api.dsl.Cached;
......@@ -909,6 +910,7 @@ public class FastRInterop {
} catch (UnsupportedMessageException e) {
throw error(RError.Message.MUST_BE_STRING_OR_FUNCTION, "what");
} catch (RuntimeException e) {
CompilerDirectives.transferToInterpreter();
throw error(RError.Message.GENERIC, e.getMessage());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment