Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 21690:e59895e16377
TCK now checks behavior when parsing unparseable code
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 27 May 2015 10:49:06 +0200 |
parents | 99e3f4c5c853 |
children | c8418635b575 |
comparison
equal
deleted
inserted
replaced
21503:12e3d0dfffeb | 21690:e59895e16377 |
---|---|
370 return result.toString(); | 370 return result.toString(); |
371 } | 371 } |
372 | 372 |
373 @Override | 373 @Override |
374 protected Object eval(Source code) throws IOException { | 374 protected Object eval(Source code) throws IOException { |
375 context.executeMain(code); | 375 try { |
376 context.executeMain(code); | |
377 } catch (Exception e) { | |
378 throw new IOException(e); | |
379 } | |
376 return null; | 380 return null; |
377 } | 381 } |
378 | 382 |
379 @Override | 383 @Override |
380 protected Object findExportedSymbol(String globalName) { | 384 protected Object findExportedSymbol(String globalName) { |