comparison 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
comparison
equal deleted inserted replaced
21689:ed234a3178af 21692:c8418635b575
357 return result.toString(); 357 return result.toString();
358 } 358 }
359 359
360 @Override 360 @Override
361 protected Object eval(Source code) throws IOException { 361 protected Object eval(Source code) throws IOException {
362 context.executeMain(code); 362 try {
363 context.executeMain(code);
364 } catch (Exception e) {
365 throw new IOException(e);
366 }
363 return null; 367 return null;
364 } 368 }
365 369
366 @Override 370 @Override
367 protected Object findExportedSymbol(String globalName) { 371 protected Object findExportedSymbol(String globalName) {