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

Unified Diff: lib/src/dartdevc/dartdevc.dart

Issue 3012983003: Change rootDirectories to Array to introspect from Dart (Closed)
Patch Set: Created 3 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dartdevc/dartdevc.dart
diff --git a/lib/src/dartdevc/dartdevc.dart b/lib/src/dartdevc/dartdevc.dart
index 9d6fda38bf8a1a47b0b45ad7d399d2eef53bd114..2d055611558815ad94404b04282f3c376ce55bb2 100644
--- a/lib/src/dartdevc/dartdevc.dart
+++ b/lib/src/dartdevc/dartdevc.dart
@@ -151,12 +151,12 @@ if(!window.\$dartLoader) {
window.\$dartLoader = {
moduleIdToUrl: new Map(),
urlToModuleId: new Map(),
- rootDirectories: new Set(),
+ rootDirectories: new Array(),
};
}
let customModulePaths = {};
-window.\$dartLoader.rootDirectories.add(_currentDirectory);
+window.\$dartLoader.rootDirectories.push(_currentDirectory);
for (let moduleName of Object.getOwnPropertyNames(modulePaths)) {
let modulePath = modulePaths[moduleName];
if (modulePath != moduleName) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698