Skip to content

Commit 36b7050

Browse files
committed
Prevent highlighting
1 parent 28c5e87 commit 36b7050

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

instrument.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,7 @@ void jscoverage_instrument(const char * source,
185185
}
186186

187187
/* copy the resources */
188-
if (jscoverage_mozilla) {
189-
char * jscoverage_chrome_directory = make_path(chrome_directory, "jscoverage");
190-
mkdirs(jscoverage_chrome_directory);
191-
free(jscoverage_chrome_directory);
192-
}
193-
else {
194-
jscoverage_copy_resources(destination);
195-
}
188+
jscoverage_copy_resources(destination);
196189

197190
/* finally: copy the directory */
198191
struct DirListEntry * list = make_recursive_dir_list(source);

jscoverage.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ int main(int argc, char ** argv) {
4646

4747
char ** exclude = xnew(char *, argc - 1);
4848
int num_exclude = 0;
49+
50+
jscoverage_highlight = false;
4951

5052
for (int i = 1; i < argc; i++) {
5153
if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) {
@@ -58,9 +60,6 @@ int main(int argc, char ** argv) {
5860
else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--verbose") == 0) {
5961
verbose = 1;
6062
}
61-
else if (strcmp(argv[i], "--no-highlight") == 0) {
62-
jscoverage_highlight = false;
63-
}
6463
else if (strcmp(argv[i], "--mozilla") == 0) {
6564
jscoverage_mozilla = true;
6665
jscoverage_set_js_version("180");

0 commit comments

Comments
 (0)