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

Unified Diff: utils/apidoc/mdn/crawl.js

Issue 9315026: Cleanup mdn scripts (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review fixes Created 8 years, 11 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 | « utils/apidoc/mdn/README.txt ('k') | utils/apidoc/mdn/extract.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/mdn/crawl.js
diff --git a/utils/apidoc/mdn/crawl.js b/utils/apidoc/mdn/crawl.js
index d4965eb920d8d4815d075631e14aefcd404a4b5c..c11523d648f684a37efbd2c75a15f7db9302960f 100644
--- a/utils/apidoc/mdn/crawl.js
+++ b/utils/apidoc/mdn/crawl.js
@@ -1,3 +1,6 @@
+// TODO(jacobr): convert this file to Dart once Dart supports all of the
+// nodejs functionality used here. For example, search for all occurences of
+// "http." and "fs."
var http = require('http');
var fs = require('fs');
@@ -17,7 +20,7 @@ function scrape(filename, link) {
var prefix = 'https://developer.mozilla.org/';
var notFoundPrefix = 'https://developer.mozilla.org/Article_not_found?uri=';
if (link.indexOf(prefix) != 0 ) {
- throw "Unexpected url:" + link;
+ throw "Unexpected url: " + link;
}
var scrapePath = "/search?q=cache:" + link;
// We crawl content from googleusercontent.com so we don't have to worry about
« no previous file with comments | « utils/apidoc/mdn/README.txt ('k') | utils/apidoc/mdn/extract.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698