29 |
#include <sys/stat.h> |
#include <sys/stat.h> |
30 |
#include <sys/types.h> |
#include <sys/types.h> |
31 |
|
|
32 |
|
#include "global.h" |
33 |
#include "instrument-js.h" |
#include "instrument-js.h" |
34 |
#include "resource-manager.h" |
#include "resource-manager.h" |
35 |
#include "util.h" |
#include "util.h" |
98 |
|
|
99 |
Stream_write_file_contents(input_stream, input); |
Stream_write_file_contents(input_stream, input); |
100 |
|
|
101 |
jscoverage_instrument_js(id, input_stream, output_stream); |
jscoverage_instrument_js(id, jscoverage_encoding, input_stream, output_stream); |
102 |
|
|
103 |
if (fwrite(output_stream->data, 1, output_stream->length, output) != output_stream->length) { |
if (fwrite(output_stream->data, 1, output_stream->length, output) != output_stream->length) { |
104 |
fatal("cannot write to file: %s", destination_file); |
fatal("cannot write to file: %s", destination_file); |