This repository was archived by the owner on Oct 9, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments