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

Unified Diff: tools/splaytree.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/splaytree.js
diff --git a/tools/splaytree.js b/tools/splaytree.js
index d272a9e18279bd5add5a95c0a33d784eb8a2cef7..946dfbd88ff68608d8cf109aaca28342b663b5f2 100644
--- a/tools/splaytree.js
+++ b/tools/splaytree.js
@@ -325,3 +325,8 @@ SplayTree.Node.prototype.left = null;
* @type {SplayTree.Node}
*/
SplayTree.Node.prototype.right = null;
+
+// Node exports
+if (typeof module !== 'undefined' && module.exports) {
+ module.exports = SplayTree;
+}

Powered by Google App Engine
This is Rietveld 408576698