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

Unified Diff: tools/consarray.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
« no previous file with comments | « tools/codemap.js ('k') | tools/csvparser.js » ('j') | tools/profile.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/consarray.js
diff --git a/tools/consarray.js b/tools/consarray.js
index dbce1de29828459c308843d231db7570996c08b0..b01ecdbfcc3b7e9acf145059f85e60a0f8413663 100644
--- a/tools/consarray.js
+++ b/tools/consarray.js
@@ -90,3 +90,8 @@ ConsArray.Cell = function(data, next) {
this.data = data;
this.next = next;
};
+
+// Node exports
+if (typeof module !== 'undefined' && module.exports) {
+ module.exports = ConsArray;
+}
« no previous file with comments | « tools/codemap.js ('k') | tools/csvparser.js » ('j') | tools/profile.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698