jsinstrument 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jsinstrument/inserting.js +4 -1
- data/lib/jsinstrument/version.rb +1 -1
- metadata +1 -1
@@ -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
|
/**
|
data/lib/jsinstrument/version.rb
CHANGED