Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: tools/csvparser.js

Issue 1179173009: Add support for running the profiler output processing scripts with node. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Passed a missing type arg through to CodeEntry Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/csvparser.js
diff --git a/tools/csvparser.js b/tools/csvparser.js
index c7d46b535c708f7b696b59347a4df455fad6c8f7..03e5cd7d929fb156b902efb93e53ef7d6abc2bfa 100644
--- a/tools/csvparser.js
+++ b/tools/csvparser.js
@@ -76,3 +76,8 @@ CsvParser.prototype.parseLine = function(line) {
}
return fields;
};
+
+// Node exports
+if (typeof module !== 'undefined' && module.exports) {
+ module.exports = CsvParser;
+}
« no previous file with comments | « tools/consarray.js ('k') | tools/linux-tick-processor » ('j') | tools/profile.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698