| Index: lib/src/compiler.dart
|
| diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
|
| index 61c568591624e3a99238c4a54937cf2f6f85bcf8..921b857ae5caa60a93b86f94bddb242c601deb4e 100644
|
| --- a/lib/src/compiler.dart
|
| +++ b/lib/src/compiler.dart
|
| @@ -513,13 +513,27 @@ const corelibOrder = const [
|
| 'dart._js_mirrors',
|
| 'dart.js',
|
| 'dart._metadata',
|
| - 'dart.dom.html_common',
|
| 'dart.dom.html',
|
| + 'dart.dom.html_common',
|
| 'dart._debugger'
|
| // _foreign_helper is not included, as it only defines the JS builtin that
|
| // the compiler handles at compile time.
|
| ];
|
|
|
| +/// Returns the JS module name corresponding to a core library name (must be
|
| +/// from the [corelibOrder] list).
|
| +String getCorelibModuleName(String lib) {
|
| + assert(corelibOrder.contains(lib));
|
| + switch (lib) {
|
| + case 'dart.dom.html_common':
|
| + return 'dart/html_common';
|
| + case 'dart.dom.html':
|
| + return 'dart/html';
|
| + default:
|
| + return lib.replaceAll('dart.', 'dart/');
|
| + }
|
| +}
|
| +
|
| /// Runtime files added to all applications when running the compiler in the
|
| /// command line.
|
| final defaultRuntimeFiles = () {
|
|
|