Index: tools/logreader.js |
diff --git a/tools/logreader.js b/tools/logreader.js |
index 157a7fc8567df8af22bf4598c387805c77c3549d..81517ef870430d38bb2cef97ad154d7213a2818d 100644 |
--- a/tools/logreader.js |
+++ b/tools/logreader.js |
@@ -25,6 +25,11 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// Node imports |
+if (typeof module !== 'undefined' && module.exports) { |
+ CsvParser = require('./csvparser'); |
+} |
+ |
/** |
* @fileoverview Log Reader is used to process log file produced by V8. |
*/ |
@@ -233,3 +238,8 @@ LogReader.prototype.processLog_ = function(lines) { |
} |
} |
}; |
+ |
+// Node exports |
+if (typeof module !== 'undefined' && module.exports) { |
+ module.exports = LogReader; |
+} |