437 if (source.isEmpty()) { |
437 if (source.isEmpty()) { |
438 continue; |
438 continue; |
439 } |
439 } |
440 |
440 |
441 try { |
441 try { |
442 final Object res = context.eval(global, source, global, "<shell>", env._strict); |
442 final Object res = context.eval(global, source, global, "<shell>"); |
443 if (res != ScriptRuntime.UNDEFINED) { |
443 if (res != ScriptRuntime.UNDEFINED) { |
444 err.println(JSType.toString(res)); |
444 err.println(JSType.toString(res)); |
445 } |
445 } |
446 } catch (final Exception e) { |
446 } catch (final Exception e) { |
447 err.println(e); |
447 err.println(e); |