print function as defined by jrunscript's init.js script is incompatible with nashorn's definition

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b102
    • generic
    • generic

      Nashorn script engine defines 'print' function that prints newline character at the end. But, init.js script of jrunscript tool overrides the same with a version of 'print' function that does not print newline character at the end. This makes it difficult to write scripts that can run with 'jjs' as well as 'jrunscript' tool.

      Given that other shells (v8, rhino's js.jar) define 'print' function that print newline char at the end and nashorn engine's version also prints 'newline' at the end, jrunscript's init.js should be changed to be consistent.

            Assignee:
            Sundararajan Athijegannathan
            Reporter:
            Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: