Index: tool/input_sdk/private/ddc_runtime/types.dart |
diff --git a/tool/input_sdk/private/ddc_runtime/types.dart b/tool/input_sdk/private/ddc_runtime/types.dart |
index c4045a4bff657f9cda99c7e85e72a2aa7aff36d2..c5470d1a5fbb291d5f57a1b150eb2c12e6657c8b 100644 |
--- a/tool/input_sdk/private/ddc_runtime/types.dart |
+++ b/tool/input_sdk/private/ddc_runtime/types.dart |
@@ -293,13 +293,13 @@ definiteFunctionType(returnType, args, extra) => |
typedef(name, closure) => JS('', 'new #(#, #)', Typedef, name, closure); |
-bool isDartType(type) => JS('bool', '#(#) === #', read, type, Type); |
+bool isDartType(type) => JS('bool', '#(#) === #', _getRuntimeType, type, Type); |
typeName(type) => JS('', '''(() => { |
// Non-instance types |
if ($type instanceof $TypeRep) return $type.toString(); |
// Instance types |
- let tag = $read($type); |
+ let tag = $_getRuntimeType($type); |
if (tag === $Type) { |
let name = $type.name; |
let args = $getGenericArgs($type); |