nau / jscala

Scala macro that produces JavaScript from Scala code.
MIT License
205 stars 25 forks source link

Constructor bodies are dropped #19

Closed nafg closed 10 years ago

nafg commented 10 years ago
scala> javascript { class C { console.log() }  }.asString
res1: String = 
{
  function C() {

  };
}

Should output

  function C() {
    console.log()
  };

Also the constructor body should be inserted after all method "definitions" so it has access to them.