| Index: sdk/lib/_internal/compiler/js_lib/js_helper.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/js_helper.dart b/sdk/lib/_internal/compiler/js_lib/js_helper.dart
|
| index f0d7ebf803f1ff4c4edb2752038a87e466b39232..6965d8af7e41f2b58d1074e758de0cae1a2f2ea0 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/js_helper.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/js_helper.dart
|
| @@ -3313,7 +3313,7 @@ RuntimeFunctionType buildNamedFunctionType(returnType,
|
| }
|
|
|
| RuntimeType buildInterfaceType(rti, typeArguments) {
|
| - String name = JS('String|Null', r'#.name', rti);
|
| + String name = JS('String', r'#.name', rti);
|
| if (typeArguments == null || typeArguments.isEmpty) {
|
| return new RuntimeTypePlain(name);
|
| }
|
| @@ -3370,7 +3370,7 @@ RuntimeType convertRtiToRuntimeType(rti) {
|
| if (rti == null) {
|
| return getDynamicRuntimeType();
|
| } else if (JS('bool', 'typeof # == "function"', rti)) {
|
| - return new RuntimeTypePlain(JS('String', r'rti.name'));
|
| + return new RuntimeTypePlain(JS('String', r'#.name', rti));
|
| } else if (JS('bool', '#.constructor == Array', rti)) {
|
| List list = JS('JSFixedArray', '#', rti);
|
| String name = JS('String', r'#.name', list[0]);
|
|
|