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

Unified Diff: lib/runtime/dart_library.js

Issue 2208883002: Added list of imports to library modules (needed in order to discover filepaths of summaries, allow… (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Adding list of imports to dart_library modules. Created 4 years, 4 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/runtime/dart_library.js
diff --git a/lib/runtime/dart_library.js b/lib/runtime/dart_library.js
index 23fe59d69365be5de6524e2844680035166314b4..3b766c227f11ab39fb882afa5c599dd776025567 100644
--- a/lib/runtime/dart_library.js
+++ b/lib/runtime/dart_library.js
@@ -19,6 +19,9 @@ var dart_library =
const dartLibraryName = Symbol('dartLibraryName');
dart_library.dartLibraryName = dartLibraryName;
+ const libraryImports = Symbol('libraryImports');
+ dart_library.libraryImports = libraryImports;
+
// Module support. This is a simplified module system for Dart.
// Longer term, we can easily migrate to an existing JS module system:
// ES6, AMD, RequireJS, ....
@@ -65,6 +68,7 @@ var dart_library =
this._loader.apply(null, args);
this._state = LibraryLoader.READY;
this._library[dartLibraryName] = this._name;
+ this._library[libraryImports] = this._imports;
return this._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