| Index: pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
|
| index cb03c3e0ef794509a702fe915b4661c99e6ac7c7..5852aa4fde5be391e114fe252e91e5f1e6b89822 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
|
| @@ -253,8 +253,7 @@ class ClassEmitter extends CodeEmitterHelper {
|
| emitter.containerBuilder.addMemberMethod(method, builder);
|
| }
|
|
|
| - if (identical(classElement, compiler.objectClass)
|
| - && backend.enabledNoSuchMethod) {
|
| + if (classElement.isObject && backend.enabledNoSuchMethod) {
|
| // Emit the noSuchMethod handlers on the Object prototype now,
|
| // so that the code in the dynamicFunction helper can find
|
| // them. Note that this helper is invoked before analyzing the
|
|
|