Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 21692:c8418635b575
Verifying behavior of TruffleLanguage when it faces invalid source code.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 03 Jun 2015 10:56:15 +0200 |
parents | ed234a3178af e59895e16377 |
children | 2f9e4d984d16 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java Wed Jun 03 10:17:19 2015 +0200 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java Wed Jun 03 10:56:15 2015 +0200 @@ -359,7 +359,11 @@ @Override protected Object eval(Source code) throws IOException { - context.executeMain(code); + try { + context.executeMain(code); + } catch (Exception e) { + throw new IOException(e); + } return null; }