| Index: pkg/compiler/lib/src/types/types.dart
|
| diff --git a/pkg/compiler/lib/src/types/types.dart b/pkg/compiler/lib/src/types/types.dart
|
| index a11c61de64691f5f1725ee9daf47469fd22203bc..d4565d5fadd0b7d73604ebe14af363ba80628e8e 100644
|
| --- a/pkg/compiler/lib/src/types/types.dart
|
| +++ b/pkg/compiler/lib/src/types/types.dart
|
| @@ -206,13 +206,20 @@ class GlobalTypeInferenceResults {
|
| var key = (element is SynthesizedCallMethodElementX)
|
| ? element.memberContext
|
| : element;
|
| + bool isJsInterop = false;
|
| + if (element is MemberElement) {
|
| + isJsInterop = _compiler.backend.nativeData.isJsInteropMember(element);
|
| + } else if (element is ClassElement) {
|
| + // TODO(johnniwinther): Can we meet classes here?
|
| + isJsInterop = _compiler.backend.nativeData.isJsInteropClass(element);
|
| + }
|
| return _elementResults.putIfAbsent(
|
| element,
|
| () => new GlobalTypeInferenceElementResultImpl(
|
| element,
|
| _inferrer.inferrer.inTreeData[key],
|
| _inferrer,
|
| - _compiler.backend.nativeData.isJsInterop(element),
|
| + isJsInterop,
|
| dynamicType));
|
| }
|
|
|
|
|