/[jscoverage]/trunk/instrument-js.cpp
ViewVC logotype

Diff of /trunk/instrument-js.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 433 by siliconforks, Wed Feb 18 18:24:51 2009 UTC revision 434 by siliconforks, Sun Mar 8 06:45:51 2009 UTC
# Line 1424  Line 1424 
1424    free(exclusive_directives);    free(exclusive_directives);
1425    exclusive_directives = NULL;    exclusive_directives = NULL;
1426    
1427      /* copy the original source to the output */
1428      Stream_printf(output, "_$jscoverage['%s'].source = ", file_id);
1429      jscoverage_write_source(id, characters, num_characters, output);
1430      Stream_printf(output, ";\n");
1431    
1432    /* conditionals */    /* conditionals */
1433    if (has_conditionals) {    if (has_conditionals) {
1434      Stream_printf(output, "_$jscoverage['%s'].conditionals = [];\n", file_id);      Stream_printf(output, "_$jscoverage['%s'].conditionals = [];\n", file_id);
# Line 1448  Line 1453 
1453      free(if_directive);      free(if_directive);
1454    }    }
1455    
   /* copy the original source to the output */  
   Stream_printf(output, "_$jscoverage['%s'].source = ", file_id);  
   jscoverage_write_source(id, characters, num_characters, output);  
   Stream_printf(output, ";\n");  
   
1456    Stream_delete(instrumented);    Stream_delete(instrumented);
1457    
1458    file_id = NULL;    file_id = NULL;

Legend:
Removed from v.433  
changed lines
  Added in v.434

  ViewVC Help
Powered by ViewVC 1.1.24