CoffeeScript (AltJS): デバッグコンソールにトレース出力

snippet-console.coffee

class SnippetConsole
        constructor: () ->
                console.log("constructor")

        log: (message) ->
                console.log message
                console.log(3)

snippet = new SnippetConsole();
snippet.log("hello world")

(変換後)snippet-console.js

// Generated by CoffeeScript 1.6.3
(function() {
  var SnippetConsole, snippet;

  SnippetConsole = (function() {
    function SnippetConsole() {
      console.log("constructor");
    }

    SnippetConsole.prototype.log = function(message) {
      console.log(message);
      return console.log(3);
    };

    return SnippetConsole;

  })();

  snippet = new SnippetConsole();

  snippet.log("hello world");

}).call(this);
constructor
hello world
3