| Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
|
| diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
|
| index dc776c86d689a9ee2e75840b9895e580f8f76cdb..fc156363c3dd7b4b305b8798a3296115612e1b2f 100644
|
| --- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
|
| +++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/rtti.dart
|
| @@ -208,11 +208,16 @@ void tagLazy(value, compute) {
|
| }
|
|
|
| var _loadedModules = JS('', 'new Map()');
|
| +var _loadedSourceMaps = JS('', 'new Map()');
|
|
|
| List getModuleNames() {
|
| return JS('', 'Array.from(#.keys())', _loadedModules);
|
| }
|
|
|
| +String getSourceMap(module) {
|
| + return JS('String', '#.get(#)', _loadedSourceMaps, module);
|
| +}
|
| +
|
| /// Return all library objects in the specified module.
|
| getModuleLibraries(String name) {
|
| var module = JS('', '#.get(#)', _loadedModules, name);
|
| @@ -222,6 +227,7 @@ getModuleLibraries(String name) {
|
| }
|
|
|
| /// Track all libraries
|
| -void trackLibraries(String moduleName, libraries) {
|
| +void trackLibraries(String moduleName, libraries, sourceMap) {
|
| + JS('', '#.set(#, #)', _loadedSourceMaps, moduleName, sourceMap);
|
| JS('', '#.set(#, #)', _loadedModules, moduleName, libraries);
|
| -}
|
| +}
|
|
|