| Index: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
|
| index 473766ab694b9bb4a45a2710ec63fd39b19198de..07eb81ce5949ada8f4c3d28e6d2485530dcead39 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
|
| @@ -1833,14 +1833,16 @@ function(originalDescriptor, name, holder, isStatic, globalFunctionsAccess) {
|
|
|
| ClassBuilder getElementDescriptor(Element element, Fragment fragment) {
|
| Element owner = element.library;
|
| - if (!element.isLibrary && !element.isTopLevel && !element.isNative) {
|
| + if (!element.isLibrary &&
|
| + !element.isTopLevel &&
|
| + !backend.isNative(element)) {
|
| // For static (not top level) elements, record their code in a buffer
|
| // specific to the class. For now, not supported for native classes and
|
| // native elements.
|
| ClassElement cls =
|
| element.enclosingClassOrCompilationUnit.declaration;
|
| if (compiler.codegenWorld.directlyInstantiatedClasses.contains(cls) &&
|
| - !cls.isNative &&
|
| + !backend.isNative(cls) &&
|
| compiler.deferredLoadTask.outputUnitForElement(element) ==
|
| compiler.deferredLoadTask.outputUnitForElement(cls)) {
|
| owner = cls;
|
|
|