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

Unified Diff: pkg/dev_compiler/lib/js/legacy/dart_library.js

Issue 2738103003: Fix custom formatter setup, take 2 (Closed)
Patch Set: Created 3 years, 9 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: pkg/dev_compiler/lib/js/legacy/dart_library.js
diff --git a/pkg/dev_compiler/lib/js/legacy/dart_library.js b/pkg/dev_compiler/lib/js/legacy/dart_library.js
index 4901310d7dc19511a577280266e389a8e4c13afd..89549ae240d6475f998a2f371ab4fc99a8d71436 100644
--- a/pkg/dev_compiler/lib/js/legacy/dart_library.js
+++ b/pkg/dev_compiler/lib/js/legacy/dart_library.js
@@ -153,7 +153,6 @@ dart_library =
dart_library.library = library;
function import_(libraryName) {
- bootstrap();
let loader = libraries.get(libraryName);
// TODO(vsm): A user might call this directly from JS (as we do in tests).
// We may want a different error type.
@@ -169,11 +168,11 @@ dart_library =
let library = import_(moduleName)[libraryName];
let dart_sdk = import_('dart_sdk');
- // This import is only needed for chrome debugging. We should provide an
- // option to compile without it.
- dart_sdk._debugger.registerDevtoolsFormatter();
-
if (!_currentIsolate) {
+ // This import is only needed for chrome debugging. We should provide an
+ // option to compile without it.
+ dart_sdk._debugger.registerDevtoolsFormatter();
+
// Create isolate.
_currentIsolate = true;
dart_sdk._isolate_helper.startRootIsolate(() => {}, []);
@@ -183,11 +182,5 @@ dart_library =
}
dart_library.start = start;
- let _bootstrapped = false;
- function bootstrap() {
- if (_bootstrapped) return;
- _bootstrapped = true;
- }
-
})(dart_library);
}
« 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