coffee script compiler doesn't work with Nashorn

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: None
    • Component/s: 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.

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: