Skip to content
Snippets Groups Projects
Commit 82925c65 authored by Florian Angerer's avatar Florian Angerer
Browse files

Converting results of PolyglotEngine's eval to Java values.

parent 7c9a5fbd
No related branches found
No related tags found
No related merge requests found
...@@ -364,7 +364,7 @@ final class REngine implements Engine, Engine.Timings { ...@@ -364,7 +364,7 @@ final class REngine implements Engine, Engine.Timings {
} }
lastValue = calls[i].call(new Object[]{executionFrame != null ? executionFrame : newContext.stateREnvironment.getGlobalFrame()}); lastValue = calls[i].call(new Object[]{executionFrame != null ? executionFrame : newContext.stateREnvironment.getGlobalFrame()});
} }
return lastValue; return RRuntime.r2Java(lastValue);
} catch (ReturnException ex) { } catch (ReturnException ex) {
return ex.getResult(); return ex.getResult();
} catch (DebugExitException | JumpToTopLevelException | ExitException | ThreadDeath e) { } catch (DebugExitException | JumpToTopLevelException | ExitException | ThreadDeath e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment