jsinstrument 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@
24
24
  /**
25
25
  * register instrumented lines for the file
26
26
  */
27
- register: function(file, lines, func_lines) {
27
+ register: function(file, lines, func_lines, branch_lines) {
28
28
  // replace the dot in the filename by underscore to be competible with mongodb
29
29
  file = file.replace(/\./g, '_')
30
30
  // can't register twice for one file
@@ -40,6 +40,9 @@
40
40
  for (var i in func_lines) {
41
41
  this.data[file].func[func_lines[i]] = 0;
42
42
  }
43
+ for (var i in branch_lines) {
44
+ this.data[file].func[branch_lines[i]] = 0;
45
+ }
43
46
  }
44
47
  },
45
48
  /**
@@ -1,3 +1,3 @@
1
1
  module JSInstrument
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsinstrument
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: