Skip to content

Doesn't trace some class methods #10

Description

@GoogleCodeExporter
Classes generated by the CoffeeScript translator aren't traced, for example

class Foo
  constructor: (x, y) ->
    @z = x + y
  method: ->
    # some code
    @z
f = new Foo(1,2)
f.method()

generates

+  Foo = function(){
+    function Foo(x, y) {
-      this.z = x + y
+    }
+    Foo.prototype.method = function() {
-      ...
-      return this.z
+    }
+    return Foo
+  }();

The lines marked with "-" are not shown as covered even though they have been 
executed.

Original issue reported on code.google.com by funkycoder@gmail.com on 17 Nov 2011 at 8:38

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions