Skip to content
Snippets Groups Projects
Commit c8319850 authored by Jaroslav Tulach's avatar Jaroslav Tulach
Browse files

Adding the '046c888e' fix into the tip of the jtulach/NoIOException branch

parents e8b55e17 046c888e
Branches
No related tags found
No related merge requests found
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
*/ */
package com.oracle.truffle.r.nodes.builtin.fastr; package com.oracle.truffle.r.nodes.builtin.fastr;
import java.io.IOException;
import com.oracle.truffle.api.CallTarget; import com.oracle.truffle.api.CallTarget;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary; import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.Specialization; import com.oracle.truffle.api.dsl.Specialization;
...@@ -51,14 +53,16 @@ public class FastRInterop { ...@@ -51,14 +53,16 @@ public class FastRInterop {
try { try {
callTarget = RContext.getInstance().getEnv().parse(sourceObject); callTarget = RContext.getInstance().getEnv().parse(sourceObject);
} catch (RuntimeException e) { emitIO();
throw e; } catch (IOException e) {
} catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
return callTarget.call(); return callTarget.call();
} }
private void emitIO() throws IOException {
}
} }
@RBuiltin(name = ".fastr.interop.export", visibility = RVisibility.OFF, kind = RBuiltinKind.PRIMITIVE, parameterNames = {"name", "value"}) @RBuiltin(name = ".fastr.interop.export", visibility = RVisibility.OFF, kind = RBuiltinKind.PRIMITIVE, parameterNames = {"name", "value"})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment