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 4a8670bd65178dbd7914982df4ac822520dfaddc..f81f99f861c24df1a012411c734600f27ffb4cad 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 |
@@ -391,7 +391,8 @@ bool hasField(type, name) => _hasSigEntry(type, _fieldSig, name); |
final _extensionType = JS('', 'Symbol("extensionType")'); |
-getExtensionType(obj) => JS('', '#[#]', obj, _extensionType); |
+getExtensionType(obj) => |
+ JS('', '# == null ? null : #[#]', obj, obj, _extensionType); |
final dartx = JS('', 'dartx'); |