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

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

Issue 2703263002: Custom formatter cleanup Fix case where displaying a class constructor generated unreadable huge ou… (Closed)
Patch Set: Custom formatter cleanup Fix case where displaying a class constructor generated unreadable huge ou… Created 3 years, 10 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 | « pkg/dev_compiler/lib/js/es6/dart_sdk.js ('k') | pkg/dev_compiler/lib/js/legacy/dart_sdk.js » ('j') | 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 585b7a446b0228a15cdd06dc390c847aa98c7624..bb6ab0298b4104863721541114dbef67b0b89a07 100644
--- a/pkg/dev_compiler/lib/js/legacy/dart_library.js
+++ b/pkg/dev_compiler/lib/js/legacy/dart_library.js
@@ -17,9 +17,6 @@ dart_library =
throw Error(message);
}
- const dartLibraryName = Symbol('dartLibraryName');
- dart_library.dartLibraryName = dartLibraryName;
-
const libraryImports = Symbol('libraryImports');
dart_library.libraryImports = libraryImports;
@@ -95,7 +92,7 @@ dart_library =
// Load the library
let loader = this;
let library = this._library;
- library[dartLibraryName] = this._name;
+
library[libraryImports] = this._imports;
library[loadedModule] = library;
args.unshift(library);
@@ -187,9 +184,6 @@ dart_library =
if (_bootstrapped) return;
_bootstrapped = true;
- // Force import of core.
- var 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();
« no previous file with comments | « pkg/dev_compiler/lib/js/es6/dart_sdk.js ('k') | pkg/dev_compiler/lib/js/legacy/dart_sdk.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698