Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8008370

coffee script compiler doesn't work with Nashorn

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • core-libs
    • None
    • b82
    • Verified

      Running the following program

      load("coffee-script.js");
      var js = CoffeeScript.compile("print 'hello coffescript world'");
      print(js);
      eval(js);

      should print

      (function() {

        print('hello coffescript world');

      }).call(this);

      hello coffescript world

      ---

      Instead it generates a script without the print statement inside it.

            hannesw Hannes Wallnoefer
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: