Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/classes.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/classes.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/classes.dart |
index 51a703efdab460c4e319eecf19905c70a70b809c..d6f3423b7d6980e77c0caddf61502d10298f2b58 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/classes.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/classes.dart |
@@ -422,6 +422,10 @@ registerExtension(jsType, dartExtType) => JS( |
let extProto = $dartExtType.prototype; |
let jsProto = $jsType.prototype; |
+ // TODO(vsm): This sometimes doesn't exist on FF. These types will be |
+ // broken. |
+ if (!jsProto) return; |
+ |
// Mark the JS type's instances so we can easily check for extensions. |
jsProto[$_extensionType] = $dartExtType; |
$_installProperties(jsProto, extProto); |