Skip to content
Snippets Groups Projects
Commit 711c6f88 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

do not throw RErrors created during parsing through PolyglotEngine

parent 60e86129
Branches
No related tags found
No related merge requests found
......@@ -134,11 +134,18 @@ public final class TruffleRLanguage extends TruffleLanguage<RContext> {
public Object call(Object... arguments) {
try {
throw e.throwAsRError();
} catch (@SuppressWarnings("hiding") RError e) {
} catch (RError e2) {
return null;
}
}
};
} catch (RError e) {
return new CallTarget() {
@Override
public Object call(Object... arguments) {
return null;
}
};
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment