Index: pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart b/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart |
index 758b1647a6b7893e56999662b6539089c7431597..eb6319c591d9f7d977ba472d608697c325b30708 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart |
@@ -10,6 +10,12 @@ import 'dart:_js_mirrors' as js; |
@patch |
class MirrorSystem { |
@patch |
+ LibraryMirror findLibrary(Symbol libraryName) { |
+ return libraries.values.singleWhere( |
+ (library) => library.simpleName == libraryName); |
+ } |
+ |
+ @patch |
static String getName(Symbol symbol) => js.getName(symbol); |
@patch |