src/jdk/nashorn/tools/Shell.java

changeset 1406
d314052d7f5e
parent 1266
c847904b447b
child 1490
d85f981c8cf8
child 1543
8173e810dc17
equal deleted inserted replaced
1405:98b090e45df3 1406:d314052d7f5e
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);

mercurial